public GuildEventLogEntry(Guild guild, GuildEventLogEntryType type, int character1LowId, int character2LowId, int newRankId, DateTime timeStamp) { GuildId = guild.Id; Type = type; Character1LowId = character1LowId; Character2LowId = character2LowId; NewRankId = newRankId; TimeStamp = timeStamp; }
public GuildEventLogEntry(Guild guild, GuildEventLogEntryType type, int character1LowId, int character2LowId, int newRankId, DateTime timeStamp) { this.GuildId = guild.Id; this.Type = type; this.Character1LowId = character1LowId; this.Character2LowId = character2LowId; this.NewRankId = newRankId; this.TimeStamp = timeStamp; }
public void AddEvent(GuildEventLogEntryType type, uint character1LowId, uint character2LowId, int newRankId) { ServerApp <WCell.RealmServer.RealmServer> .IOQueue.AddMessage((Action)(() => { GuildEventLogEntry record = new GuildEventLogEntry(this.m_guild, type, (int)character1LowId, (int)character2LowId, newRankId, DateTime.Now); record.CreateLater(); lock (this.entries) this.entries.Insert(record); })); }
public void AddEvent(GuildEventLogEntryType type, uint character1LowId, uint character2LowId, int newRankId) { var evt = new GuildEventLogEntry(m_guild, type, (int)character1LowId, (int)character2LowId, newRankId, DateTime.Now); evt.CreateLater(); lock (entries) { entries.Insert(evt); } }
public void AddEvent(GuildEventLogEntryType type, uint character1LowId, uint character2LowId, int newRankId) { var evt = new GuildEventLogEntry(m_guild, type, (int)character1LowId, (int)character2LowId, newRankId, DateTime.Now); m_entries.Enqueue(evt); evt.CreateLater(); if (m_entries.Count > MAX_ENTRIES_COUNT) { var entry = m_entries.Dequeue(); RealmServer.Instance.AddMessage(new Message(entry.Delete)); } }