static int _g_get_LocalPlayerInitPos(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.LocalPlayerInitPos); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_NameFlag(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.NameFlag); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _m_ResumeInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.ResumeInstance( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ReactInstanceEvent(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { uint game_event = LuaAPI.xlua_touint(L, 2); __cl_gen_to_be_invoked.ReactInstanceEvent(game_event); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_StateEnter_InPlay(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { xc.Machine.State s = (xc.Machine.State)translator.GetObject(L, 2, typeof(xc.Machine.State)); __cl_gen_to_be_invoked.StateEnter_InPlay(s); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Enter(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { object[] param = translator.GetParams <object>(L, 2); __cl_gen_to_be_invoked.Enter(param); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_AddComponent(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { string component_name = LuaAPI.lua_tostring(L, 2); xc.instance_behaviour.Behaviour __cl_gen_ret = __cl_gen_to_be_invoked.AddComponent(component_name); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_IsInState(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { uint state = LuaAPI.xlua_touint(L, 2); bool __cl_gen_ret = __cl_gen_to_be_invoked.IsInState(state); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetState(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { uint id = LuaAPI.xlua_touint(L, 2); xc.Machine.State __cl_gen_ret = __cl_gen_to_be_invoked.GetState(id); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_IsFriend(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { Actor actor = (Actor)translator.GetObject(L, 2, typeof(Actor)); bool __cl_gen_ret = __cl_gen_to_be_invoked.IsFriend(actor); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_MonsterWholeName(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.CommonInstanceState __cl_gen_to_be_invoked = (xc.CommonInstanceState)translator.FastGetCSObj(L, 1); try { { Monster actor = (Monster)translator.GetObject(L, 2, typeof(Monster)); string __cl_gen_ret = __cl_gen_to_be_invoked.MonsterWholeName(actor); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }