static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); fogs.proto.msg.PositionType o = (fogs.proto.msg.PositionType)arg0; LuaScriptMgr.Push(L, o); return(1); }
static int GetPosition(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); BaseDataConfig2 obj = (BaseDataConfig2)LuaScriptMgr.GetNetObjectSelf(L, 1, "BaseDataConfig2"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); fogs.proto.msg.PositionType o = obj.GetPosition(arg0); LuaScriptMgr.Push(L, o); return(1); }
static int GetMappedNPC(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); GameMode obj = (GameMode)LuaScriptMgr.GetNetObjectSelf(L, 1, "GameMode"); fogs.proto.msg.PositionType arg0 = (fogs.proto.msg.PositionType)LuaScriptMgr.GetNetObject(L, 2, typeof(fogs.proto.msg.PositionType)); uint o = obj.GetMappedNPC(arg0); LuaScriptMgr.Push(L, o); return(1); }
static int Remove(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); Dictionary <fogs.proto.msg.PositionType, uint> obj = (Dictionary <fogs.proto.msg.PositionType, uint>)LuaScriptMgr.GetNetObjectSelf(L, 1, "Dictionary<fogs.proto.msg.PositionType,uint>"); fogs.proto.msg.PositionType arg0 = (fogs.proto.msg.PositionType)LuaScriptMgr.GetNetObject(L, 2, typeof(fogs.proto.msg.PositionType)); bool o = obj.Remove(arg0); LuaScriptMgr.Push(L, o); return(1); }
static int Add(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); Dictionary <fogs.proto.msg.PositionType, uint> obj = (Dictionary <fogs.proto.msg.PositionType, uint>)LuaScriptMgr.GetNetObjectSelf(L, 1, "Dictionary<fogs.proto.msg.PositionType,uint>"); fogs.proto.msg.PositionType arg0 = (fogs.proto.msg.PositionType)LuaScriptMgr.GetNetObject(L, 2, typeof(fogs.proto.msg.PositionType)); uint arg1 = (uint)LuaScriptMgr.GetNumber(L, 3); obj.Add(arg0, arg1); return(0); }
static int TryGetValue(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); Dictionary <fogs.proto.msg.PositionType, uint> obj = (Dictionary <fogs.proto.msg.PositionType, uint>)LuaScriptMgr.GetNetObjectSelf(L, 1, "Dictionary<fogs.proto.msg.PositionType,uint>"); fogs.proto.msg.PositionType arg0 = (fogs.proto.msg.PositionType)LuaScriptMgr.GetNetObject(L, 2, typeof(fogs.proto.msg.PositionType)); uint arg1; bool o = obj.TryGetValue(arg0, out arg1); LuaScriptMgr.Push(L, o); LuaScriptMgr.Push(L, arg1); return(2); }