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