static int _s_set_bornId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.BornInfoData gen_to_be_invoked = (UnityMMO.BornInfoData)translator.FastGetCSObj(L, 1); gen_to_be_invoked.bornId = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <UnityEngine.Vector3>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { UnityEngine.Vector3 _pos; translator.Get(L, 2, out _pos); int _bornId = LuaAPI.xlua_tointeger(L, 3); UnityMMO.BornInfoData gen_ret = new UnityMMO.BornInfoData(_pos, _bornId); 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.BornInfoData constructor!")); }