Game Development Community

Question about modifying the engine

by Charlie Malbaurn · in Technical Issues · 08/18/2004 (9:14 pm) · 4 replies

Hey all,
When you modify the engine and new objects are added, are these objects accessible through script? And if yes, do they then become part of the console dump for the new compile?

The reason I'm asking is because I am currently working on the intellisense part of my script editor and it's one of those things I really need to know.

As it stands now the intellisense is set to scan each document in precedence of how they are called and add any created objects to the hierarchy so all new objects become usable with the drop down.
Here's a link to my current .plan if anyone wants to see whats up


Fun fun stuff

#1
08/19/2004 (9:02 am)
If you add a scriptable object, then it will show up in the dump and be usable in-game. A scriptable object is one that inherits from SimObject, and has the DECLARE_CONOBJECT macro. Only methods exposed with ConsoleMethod and variables registered using addField in initPersistFields will show up.
#2
08/19/2004 (2:35 pm)
Thanks Ben! So I guess I can solve my intellisense issue by parsing all objects and methods from the dump. That should be a challenge. Then again what isn't :)
#3
08/19/2004 (2:39 pm)
Looking forward to seeing your stuff, Charles. If you feel like sending a preview version for feedback, please let me know, at joshw@garagegames.com.
#4
08/19/2004 (7:40 pm)
Will send it to you when its done. Or at least when the intellisense part is done. The joy of course is the parsing and figuring how im going to go about it. Considering that methods follow the heiarchy up, it should be interesting.