Jump to content

"Shared" functions?


Recommended Posts

FeXoR has been clamoring for a way to access things such as template data from RMGEN for a while: http://www.wildfiregames.com/forum/index.php?showtopic=16242&st=120#entry262357

What is the recommended way to approach this? My suggestion would be to create some kind of 'manager' separately from the simulation and move functions which don't strictly require the simulation to be running out of simulation components and into this new 'shared functions' manager. Both RMGEN and simulation components would then invoke this manager when they require any of this shared functionality.

Link to comment
Share on other sites

We have some stuff in public/globalscripts currently some trig functions and something for technologies. This isn't really what you want though.

The templates are already a special case for the simulation code because the templates contain the information about which components should be loaded. I don't know the C++ structure well enough to say where the generalized template manager should go.

Link to comment
Share on other sites

FeXoR has been clamoring for a way to access things such as template data from RMGEN for a while: http://www.wildfireg...120#entry262357

What is the recommended way to approach this? My suggestion would be to create some kind of 'manager' separately from the simulation and move functions which don't strictly require the simulation to be running out of simulation components and into this new 'shared functions' manager. Both RMGEN and simulation components would then invoke this manager when they require any of this shared functionality.

THX for picking up my clamoring :thank_you2:

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...