Author Topic: New/Weird FSO Modifications and Developer Ready to Assist  (Read 3879 times)

0 Members and 1 Guest are viewing this topic.

Code Modification, Opinions Please
OK to finish up the my space simulator  ( and free up time to help with other FSO code duties:) ) I need to wrap up my remote control system. I need an opinion.

Should I:

A)  statically compile my protocol/message types into the code with a predefined number of messages. For example:
     a. Shutdown FS2
     b. Start Mission X
     c.  Start Random Mode
     d. etc.

Or

B) create a protocol loader, using INI file or XML to set up message types and their respective actions (function calls or FS2 POSTs). The question here is does C++ allow me to convert a char or string into a function call? VB can do this. Or is this even worth it.

I think that A while not as flexible will be more reliable and almost as easy.

blasterpal

 

Offline Sticks

  • 29
New/Weird FSO Modifications and Developer Ready to Assist
Option B would be cool as hell, that's for sure.
"Napalm is good as a quickfire solution, literally..." -- cngn

"Shh... [Kazan's] schizophrenia allows him to multitask." -- Goober5000

Why am I still coding at 12:35am?

SCP: Templum sanctus ingeniosus