static int _CreatePlayerDataBridge(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { PlayerDataBridge obj = new PlayerDataBridge(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: PlayerDataBridge.New"); } return(0); }
static int get_name(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); PlayerDataBridge obj = (PlayerDataBridge)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name name"); } else { LuaDLL.luaL_error(L, "attempt to index name on a nil value"); } } LuaScriptMgr.Push(L, obj.name); return(1); }
static int set_is_home_field(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); PlayerDataBridge obj = (PlayerDataBridge)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name is_home_field"); } else { LuaDLL.luaL_error(L, "attempt to index is_home_field on a nil value"); } } obj.is_home_field = (uint)LuaScriptMgr.GetNumber(L, 3); return(0); }
static int set_squadInfos(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); PlayerDataBridge obj = (PlayerDataBridge)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name squadInfos"); } else { LuaDLL.luaL_error(L, "attempt to index squadInfos on a nil value"); } } obj.squadInfos = (List <fogs.proto.msg.FightRole>)LuaScriptMgr.GetNetObject(L, 3, typeof(List <fogs.proto.msg.FightRole>)); return(0); }