zoot Posted February 10, 2013 Share Posted February 10, 2013 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#entry262357What 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 More sharing options...
quantumstate Posted February 10, 2013 Share Posted February 10, 2013 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 More sharing options...
FeXoR Posted February 12, 2013 Share Posted February 12, 2013 FeXoR has been clamoring for a way to access things such as template data from RMGEN for a while: http://www.wildfireg...120#entry262357What 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 Link to comment Share on other sites More sharing options...
zoot Posted February 12, 2013 Author Share Posted February 12, 2013 It's a valid concern. It would also be easier for modders and the like if there was one way to call common functions instead of three. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now