Package constructor
by Aditya Kulkarni · in Torque Game Builder · 12/19/2009 (2:06 am) · 1 replies
do the packages support constructors?
i tried giving a function the same name as the package, but that doesn't work...and the documentation (http://tdn.garagegames.com/wiki/TorqueScript_Quick_Reference_2#package) doesn't say anything about them...
i tried giving a function the same name as the package, but that doesn't work...and the documentation (http://tdn.garagegames.com/wiki/TorqueScript_Quick_Reference_2#package) doesn't say anything about them...
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
Those packages aren't objects that you create.
You decide which one you make active and the functions in there will be called if a function of the given name is used.
So they are more like a function mapping / function pointer grouping mechanism