Make more use of DefineConsoleMethod

Resubmission of #887 with some fixes.
I thought we were looking at making simobjectid  a uint?

 

From: LuisAntonRebollo [mailto:notifications@github.com] 
Sent: Tuesday, December 23, 2014 6:15 AM
To: GarageGames/Torque3D
Cc: Vincent Gee
Subject: Re: [Torque3D] Make more use of DefineConsoleMethod (#1072)

 

In Engine/source/gui/controls/guiTreeViewCtrl.cpp <https://github.com/GarageGames/Torque3D/pull/1072#discussion-diff-22211382> :

> @@ -5167,13 +5163,13 @@ S32 GuiTreeViewCtrl::findItemByObjectId(S32 iObjId)
>                 return mItems[i]->mId;
>     }
>  
> -   return -1;
> +   return 0;

Yes, -1 is used on scripts for check this. Good idea move SimObjectId to S32 :)

—
Reply to this email directly or view it on GitHub <https://github.com/GarageGames/Torque3D/pull/1072/files#r22211382> .  <https://github.com/notifications/beacon/ACUNZKcBiz4ABgMJX83dQmWjgGGyiUOqks5naUYhgaJpZM4DK_cn.gif>