static int _CreateChapterConfigKeyValuePair(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 2) { uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 1); fogs.proto.config.ChapterConfig arg1 = (fogs.proto.config.ChapterConfig)LuaScriptMgr.GetNetObject(L, 2, typeof(fogs.proto.config.ChapterConfig)); KeyValuePair <uint, fogs.proto.config.ChapterConfig> obj = new KeyValuePair <uint, fogs.proto.config.ChapterConfig>(arg0, arg1); LuaScriptMgr.PushValue(L, obj); return(1); } else if (count == 0) { KeyValuePair <uint, fogs.proto.config.ChapterConfig> obj = new KeyValuePair <uint, fogs.proto.config.ChapterConfig>(); LuaScriptMgr.PushValue(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: KeyValuePair<uint,fogs.proto.config.ChapterConfig>.New"); } return(0); }
static int GetChapterData(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); CareerConfig obj = (CareerConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "CareerConfig"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); fogs.proto.config.ChapterConfig o = obj.GetChapterData(arg0); LuaScriptMgr.PushObject(L, o); return(1); }
static int Add(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); Dictionary <uint, fogs.proto.config.ChapterConfig> obj = (Dictionary <uint, fogs.proto.config.ChapterConfig>)LuaScriptMgr.GetNetObjectSelf(L, 1, "Dictionary<uint,fogs.proto.config.ChapterConfig>"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); fogs.proto.config.ChapterConfig arg1 = (fogs.proto.config.ChapterConfig)LuaScriptMgr.GetNetObject(L, 3, typeof(fogs.proto.config.ChapterConfig)); obj.Add(arg0, arg1); return(0); }
static int get_Item(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); Dictionary <uint, fogs.proto.config.ChapterConfig> obj = (Dictionary <uint, fogs.proto.config.ChapterConfig>)LuaScriptMgr.GetNetObjectSelf(L, 1, "Dictionary<uint,fogs.proto.config.ChapterConfig>"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); fogs.proto.config.ChapterConfig o = obj[arg0]; LuaScriptMgr.PushObject(L, o); return(1); }
static int ContainsValue(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); Dictionary <uint, fogs.proto.config.ChapterConfig> obj = (Dictionary <uint, fogs.proto.config.ChapterConfig>)LuaScriptMgr.GetNetObjectSelf(L, 1, "Dictionary<uint,fogs.proto.config.ChapterConfig>"); fogs.proto.config.ChapterConfig arg0 = (fogs.proto.config.ChapterConfig)LuaScriptMgr.GetNetObject(L, 2, typeof(fogs.proto.config.ChapterConfig)); bool o = obj.ContainsValue(arg0); LuaScriptMgr.Push(L, o); return(1); }
static int TryGetValue(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); Dictionary <uint, fogs.proto.config.ChapterConfig> obj = (Dictionary <uint, fogs.proto.config.ChapterConfig>)LuaScriptMgr.GetNetObjectSelf(L, 1, "Dictionary<uint,fogs.proto.config.ChapterConfig>"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); fogs.proto.config.ChapterConfig arg1 = null; bool o = obj.TryGetValue(arg0, out arg1); LuaScriptMgr.Push(L, o); LuaScriptMgr.PushObject(L, arg1); return(2); }
static int _Createfogs_proto_config_ChapterConfig(IntPtr L) { int count = LuaDLL.lua_gettop(L); if (count == 0) { fogs.proto.config.ChapterConfig obj = new fogs.proto.config.ChapterConfig(); LuaScriptMgr.PushObject(L, obj); return(1); } else { LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.config.ChapterConfig.New"); } return(0); }
static int get_name(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.config.ChapterConfig obj = (fogs.proto.config.ChapterConfig)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_gold_award(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.config.ChapterConfig obj = (fogs.proto.config.ChapterConfig)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name gold_award"); } else { LuaDLL.luaL_error(L, "attempt to index gold_award on a nil value"); } } obj.gold_award = (uint)LuaScriptMgr.GetNumber(L, 3); return(0); }
static int set_area(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); fogs.proto.config.ChapterConfig obj = (fogs.proto.config.ChapterConfig)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name area"); } else { LuaDLL.luaL_error(L, "attempt to index area on a nil value"); } } obj.area = LuaScriptMgr.GetString(L, 3); return(0); }