コード例 #1
0
 static public int QueryWithAction(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(ScriptRuntime.Vector3), typeof(float), typeof(GameFramework.MyAction <System.Single, GameFramework.KdTreeObject>)))
         {
             GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
             ScriptRuntime.Vector3      a1;
             checkValueType(l, 2, out a1);
             System.Single a2;
             checkType(l, 3, out a2);
             GameFramework.MyAction <System.Single, GameFramework.KdTreeObject> a3;
             LuaDelegation.checkDelegate(l, 4, out a3);
             self.QueryWithAction(a1, a2, a3);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(GameFramework.EntityInfo), typeof(float), typeof(GameFramework.MyAction <System.Single, GameFramework.KdTreeObject>)))
         {
             GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
             GameFramework.EntityInfo   a1;
             checkType(l, 2, out a1);
             System.Single a2;
             checkType(l, 3, out a2);
             GameFramework.MyAction <System.Single, GameFramework.KdTreeObject> a3;
             LuaDelegation.checkDelegate(l, 4, out a3);
             self.QueryWithAction(a1, a2, a3);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 6)
         {
             GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
             System.Single a1;
             checkType(l, 2, out a1);
             System.Single a2;
             checkType(l, 3, out a2);
             System.Single a3;
             checkType(l, 4, out a3);
             System.Single a4;
             checkType(l, 5, out a4);
             GameFramework.MyAction <System.Single, GameFramework.KdTreeObject> a5;
             LuaDelegation.checkDelegate(l, 6, out a5);
             self.QueryWithAction(a1, a2, a3, a4, a5);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #2
0
 static public int EndBuild(IntPtr l)
 {
     try {
         GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
         self.EndBuild();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #3
0
 static public int constructor(IntPtr l)
 {
     try {
         GameFramework.KdObjectTree o;
         o = new GameFramework.KdObjectTree();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #4
0
 static public int AddObjForBuild(IntPtr l)
 {
     try {
         GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
         GameFramework.EntityInfo   a1;
         checkType(l, 2, out a1);
         self.AddObjForBuild(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #5
0
 static public int BeginBuild(IntPtr l)
 {
     try {
         GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         self.BeginBuild(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #6
0
 static public int VisitTreeWithFunc(IntPtr l)
 {
     try {
         GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
         GameFramework.MyFunc <System.Single, System.Single, System.Single, System.Single, System.Int32, System.Int32, GameFramework.KdTreeObject[], System.Boolean> a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         self.VisitTreeWithFunc(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #7
0
 static public int FullBuild(IntPtr l)
 {
     try {
         GameFramework.KdObjectTree self = (GameFramework.KdObjectTree)checkSelf(l);
         System.Collections.Generic.IList <GameFramework.EntityInfo> a1;
         checkType(l, 2, out a1);
         self.FullBuild(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }