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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...