static int _m_OpCodeParse(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.Game.GameController __cl_gen_to_be_invoked = (Bacon.Game.GameController)translator.FastGetCSObj(L, 1); { int index = LuaAPI.xlua_tointeger(L, 2); byte[] buffer = LuaAPI.lua_tobytes(L, 3); int start = LuaAPI.xlua_tointeger(L, 4); int len = LuaAPI.xlua_tointeger(L, 5); __cl_gen_to_be_invoked.OpCodeParse(index, buffer, start, len); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Maria.Context>(L, 2)) { Maria.Context ctx = (Maria.Context)translator.GetObject(L, 2, typeof(Maria.Context)); Bacon.Game.GameController __cl_gen_ret = new Bacon.Game.GameController(ctx); 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 Bacon.Game.GameController constructor!")); }
static int _m_OnEnter(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.Game.GameController __cl_gen_to_be_invoked = (Bacon.Game.GameController)translator.FastGetCSObj(L, 1); { __cl_gen_to_be_invoked.OnEnter( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Update(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.Game.GameController __cl_gen_to_be_invoked = (Bacon.Game.GameController)translator.FastGetCSObj(L, 1); { float delta = (float)LuaAPI.lua_tonumber(L, 2); __cl_gen_to_be_invoked.Update(delta); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_OpCode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.Game.GameController __cl_gen_to_be_invoked = (Bacon.Game.GameController)translator.FastGetCSObj(L, 1); { Sproto.SprotoTypeBase responseObj = (Sproto.SprotoTypeBase)translator.GetObject(L, 2, typeof(Sproto.SprotoTypeBase)); __cl_gen_to_be_invoked.OpCode(responseObj); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetupMap(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Bacon.Game.GameController __cl_gen_to_be_invoked = (Bacon.Game.GameController)translator.FastGetCSObj(L, 1); { Maria.EventCmd e = (Maria.EventCmd)translator.GetObject(L, 2, typeof(Maria.EventCmd)); __cl_gen_to_be_invoked.SetupMap(e); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }