Exposing two-dimensional arrays via addField
by Ian Omroth Hardingham · in Torque 3D Professional · 10/11/2012 (3:29 am) · 0 replies
Hey guys.
I'm declaring this array:
const char* animList[MAX_ANIM_STATE_TYPES][MAX_ANIMS_PER_STATE];
And I want to add it with:
addField("animList0", TypeString, Offset(animList[0], GamePlayerData), MAX_ANIMS_PER_STATE);
Do we expect that to work?
(I'm assuming there's no full support for just adding this as a 2d variable)
Thanks,
Ian
I'm declaring this array:
const char* animList[MAX_ANIM_STATE_TYPES][MAX_ANIMS_PER_STATE];
And I want to add it with:
addField("animList0", TypeString, Offset(animList[0], GamePlayerData), MAX_ANIMS_PER_STATE);
Do we expect that to work?
(I'm assuming there's no full support for just adding this as a 2d variable)
Thanks,
Ian
About the author
Designer and lead programmer on Frozen Synapse, Frozen Endzone, and Determinance. Co-owner of Mode 7 Games.