I’m creating a survival based PVP game, and have already designed an inventory system. I plan on having many different types of resources, scattered around a map that is quite large.
I plan on using Object Oriented Programming to carry out the functionality of each resource object, like a tree, rock, bush, etc. The objects would include functions to harvest, damage, and potentially respawn the object. I plan on including object attributes like the resource name, the amount of health, and a variable for the instance folder the model belongs to.
Would greatly appreciate any help on the best way to navigate this system, particularly around these questions:
Is my current plan feasible performance/memory wise?
Are there any other systems that are more frequently used?
Any tips regarding optimization to prevent server or client sided problems?
For reference, I’m envisioning a system similar to the ones in games like Booga Booga, Ark Survival Evolved, or most generic resource-gathering games.