Beispiel #1
0
        private static int GetObject(LuaManager Instance,IntPtr l)
        {
            // get method arguments
                  Int32 id = (Int32)LuaApi.lua_tonumber(l,3);

                  // call method
                  Object methodRetVar = Instance.GetObject(id);

                  int nRetObjectId = LuaManager.Instance.PushStackObject(methodRetVar);
                  LuaApi.lua_pushnumber(l,nRetObjectId);
                  return 1;
        }