Jump to content

Factoring out system components


Recommended Posts

I'm quasi-interested in making the engine more moddable (#304). One of items I've noticed in that regard is that a number of system components are hardcoded into Simulation2.cpp: https://github.com/0ad/0ad/blob/master/source/simulation2/Simulation2.cpp#L100

Wouldn't it be a good idea to factor as many of those as possible out of Simulation2.cpp and into an XML template, similar to "special/player.xml"? Then mods could alter that template in accordance with which components they actually need to use.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...