static int _CreateSystem_Collections_Generic_KeyValuePair_ulong_sAvatarList(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 1); sAvatarList arg1 = (sAvatarList)ToLua.CheckObject(L, 2, typeof(sAvatarList)); System.Collections.Generic.KeyValuePair <ulong, sAvatarList> obj = new System.Collections.Generic.KeyValuePair <ulong, sAvatarList>(arg0, arg1); ToLua.PushValue(L, obj); return(1); } else if (count == 0) { System.Collections.Generic.KeyValuePair <ulong, sAvatarList> obj = new System.Collections.Generic.KeyValuePair <ulong, sAvatarList>(); ToLua.PushValue(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: System.Collections.Generic.KeyValuePair<ulong,sAvatarList>.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _get_this(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); System.Collections.Generic.Dictionary <ulong, sAvatarList> obj = (System.Collections.Generic.Dictionary <ulong, sAvatarList>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <ulong, sAvatarList>)); ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 2); sAvatarList o = obj[arg0]; ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ContainsValue(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); System.Collections.Generic.Dictionary <ulong, sAvatarList> obj = (System.Collections.Generic.Dictionary <ulong, sAvatarList>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <ulong, sAvatarList>)); sAvatarList arg0 = (sAvatarList)ToLua.CheckObject(L, 2, typeof(sAvatarList)); bool o = obj.ContainsValue(arg0); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Add(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); System.Collections.Generic.Dictionary <ulong, sAvatarList> obj = (System.Collections.Generic.Dictionary <ulong, sAvatarList>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <ulong, sAvatarList>)); ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 2); sAvatarList arg1 = (sAvatarList)ToLua.CheckObject(L, 3, typeof(sAvatarList)); obj.Add(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); System.Collections.Generic.KeyValuePair <ulong, sAvatarList> obj = (System.Collections.Generic.KeyValuePair <ulong, sAvatarList>)o; sAvatarList ret = obj.Value; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Value on a nil value" : e.Message)); } }
static int set_dbid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); sAvatarList obj = (sAvatarList)o; ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 2); obj.dbid = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dbid on a nil value" : e.Message)); } }
static int get_name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); sAvatarList obj = (sAvatarList)o; string ret = obj.name; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index name on a nil value" : e.Message)); } }
static int get_dbid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); sAvatarList obj = (sAvatarList)o; ulong ret = obj.dbid; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dbid on a nil value" : e.Message)); } }
static int set_name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); sAvatarList obj = (sAvatarList)o; string arg0 = ToLua.CheckString(L, 2); obj.name = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index name on a nil value" : e.Message)); } }
static int TryGetValue(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); System.Collections.Generic.Dictionary <ulong, sAvatarList> obj = (System.Collections.Generic.Dictionary <ulong, sAvatarList>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <ulong, sAvatarList>)); ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 2); sAvatarList arg1 = null; bool o = obj.TryGetValue(arg0, out arg1); LuaDLL.lua_pushboolean(L, o); ToLua.PushObject(L, arg1); return(2); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreatesAvatarList(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { ulong arg0 = (ulong)LuaDLL.luaL_checknumber(L, 1); string arg1 = ToLua.CheckString(L, 2); sAvatarList obj = new sAvatarList(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: sAvatarList.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }