예제 #1
0
 static int GetChildObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaPerfect.ObjectItem obj = (LuaPerfect.ObjectItem)ToLua.CheckObject <LuaPerfect.ObjectItem>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         LuaPerfect.ObjectRef o = obj.GetChildObject(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 public static ObjectRef StaticGetChildObject(ObjectItem objectItem, int i)
 {
     return(objectItem.GetChildObject(i));
 }