Hi All
I’m in the process of developing a configuration framework that I can use across projects.
The reason this has come about is for a game I’m creating where the player can drive different vehicles, but will apply to other game assts as well.
Basically it’s a series of c# configs that all game assets will be linked to.
For example:
Let’s say that there are a vehicles in the project. Every vehicle would have basic properties that they share or can be modified depending on the vehicle. Then each subclass of vehicle can have it’s own set of properties
here’s what I have in mind for the parent/child structure for the vehicle class
Class vehicle //the basic vehicle config class
Class Tracked:Vehicle // for tanks, buldozers etc every vehicle that has tracks
Class Wheeled:Vehicle // cars, trucks etc every vehicle that has wheels
Class Air:Vehicles // basic aircraft config class
Class Prop:Air // propeller and jet aircraft config class
Class Helo:Air // helicopter class
etc etc
The same can be done with buildings, objects, AI, player, weapons.
The idea is that when an asset is created you drop the corresponding config script on the model, make adjustments to the model’s properties and move onto the next asset.
For weapons you could have fire rates, damage a bullet causes, what bullet model the weapon uses, etc.