meemknight / ourCraft

A Minecraft clone with many advanced features
https://youtu.be/ebeRZVHslO0
Other
205 stars 15 forks source link

Structures refactor #4

Open deprale opened 6 months ago

deprale commented 6 months ago

removed repeating code + a bit of a refactor so it's easier to build upon without repeating code over and over, when you need to generate additional structures u can just add to the map, and the path to the structure in the header file.

I think it can be further refactored by recursively parsing the directories rather than including them each 1 by 1, this way people can also just mod structures without adding any code (but it'd require a lot of refactoring)

structurePaths could also just be a const char array I guess.

meemknight commented 6 months ago

yo, I don't really look at pool requests because it's harder for me to maintain the code like this, thanks for the help tho and if you want to help some more in the future you can message me on discord and we can exchange ideas 💪

tag me there, I'm low level game dev https://discord.gg/eehehsPAka

meemknight commented 6 months ago

and yes I would need to remake structures big time 😆