Meaning verification DefineEngineFunction & ConsoleFunction

Expanding and utilizing the engine via C++.
  • 1
  • 2
12 posts Page 2 of 2
Timmy
Posts: 308
Joined: Thu Feb 05, 2015 3:20 am
by Timmy » Mon Jul 03, 2017 9:55 am
Torr wrote:I searched for the examples, on google and on git-hub, but I've not found nothing. Can you please give me the link to these?


https://github.com/GarageGames/Torque3D/search?utf8=%E2%9C%93&q=RenderMeshExample
JeffR
Steering Committee
Steering Committee
Posts: 763
Joined: Tue Feb 03, 2015 9:49 pm
 
by JeffR » Mon Jul 10, 2017 4:14 pm
Here's the specific documentation bit that pertains to that console initialization stuff:

https://github.com/GarageGames/Torque3D/blob/a858fa775f9a96123a56cd66b302fd92d04ef0c5/Engine/source/console/consoleObject.h#L101-L197

So while you look good on the header side of things for the declaration of the class object, you'll also want to have the IMPLEMENT_* macro in your cpp file for when you define all the functions and stuff. There's two macros to use IMPLEMENT_CONOBJECT and IMPLMENENT_CO_NETOBJECT_V1

you use the NETOBJECT stuff in the event you need this class to be ghostable down to the client. If you use the regular conobject stuff, it'll only exist where you create it(create it on the server, it exists only on the server, no clients are aware of it, etc).
  • 1
  • 2
12 posts Page 2 of 2

Who is online

Users browsing this forum: No registered users and 3 guests