static int _g_get_born_id(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.BornInfo gen_to_be_invoked = (UnityMMO.BornInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.born_id); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityMMO.BornInfo gen_ret = new UnityMMO.BornInfo(); translator.Push(L, 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 UnityMMO.BornInfo constructor!")); }
static int _m_GetUnityPos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.BornInfo gen_to_be_invoked = (UnityMMO.BornInfo)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 gen_ret = gen_to_be_invoked.GetUnityPos( ); translator.PushUnityEngineVector3(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }