Game Development Community

Creating a console object

by DIAG · in Torque Game Engine · 06/21/2004 (3:44 am) · 4 replies

Hello,
I have created a standalone class. I would like to be able to edit the values of this class via the console. As this class inherits from nothing, i cannot provide a typedef Blah Parent. Is there any way around this?
Thanks for your help

#1
06/21/2004 (8:03 am)
All classes that interact with the console are derived from SimObject. It provides important functionality like object ids, field lists, safe pointers, etc. If you want to manipulate your class directly you'll need to make it derive from SimObject.
#2
06/23/2004 (10:13 am)
Isn't this required??
IMPLEMENT_CON_OBJECT(yourclass)

- Brett
#3
06/23/2004 (10:30 pm)
Yes, and DEFINE_CONOBJECT(). Check the SimObject docs in the Torque Engine Reference.
#4
06/24/2004 (12:28 am)
Thanks guys, got it working!