static int _Createfogs_proto_msg_PvpPlusInfo(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { fogs.proto.msg.PvpPlusInfo obj = new fogs.proto.msg.PvpPlusInfo(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.msg.PvpPlusInfo.New"); } return(0); }
static int get_race_times(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.PvpPlusInfo obj = (fogs.proto.msg.PvpPlusInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name race_times"); } else { LuaDLL.luaL_error(L, "attempt to index race_times on a nil value"); } } LuaScriptMgr.Push(L, obj.race_times); return(1); }
static int set_kill_goal_times(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.PvpPlusInfo obj = (fogs.proto.msg.PvpPlusInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name kill_goal_times"); } else { LuaDLL.luaL_error(L, "attempt to index kill_goal_times on a nil value"); } } obj.kill_goal_times = (uint)LuaScriptMgr.GetNumber(L, 3); return(0); }
static int set_max_winning_streak(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.msg.PvpPlusInfo obj = (fogs.proto.msg.PvpPlusInfo)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name max_winning_streak"); } else { LuaDLL.luaL_error(L, "attempt to index max_winning_streak on a nil value"); } } obj.max_winning_streak = (uint)LuaScriptMgr.GetNumber(L, 3); return(0); }