static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { BattleServer.Battle.Snapshot.SnapshotMgr __cl_gen_ret = new BattleServer.Battle.Snapshot.SnapshotMgr(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to BattleServer.Battle.Snapshot.SnapshotMgr constructor!")); }
static int _m_Get(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BattleServer.Battle.Snapshot.SnapshotMgr __cl_gen_to_be_invoked = (BattleServer.Battle.Snapshot.SnapshotMgr)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int frame = LuaAPI.xlua_tointeger(L, 2); BattleServer.Battle.Snapshot.FrameSnapshot __cl_gen_ret = __cl_gen_to_be_invoked.Get(frame); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 1) { BattleServer.Battle.Snapshot.FrameSnapshot __cl_gen_ret = __cl_gen_to_be_invoked.Get( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to BattleServer.Battle.Snapshot.SnapshotMgr.Get!")); }