private void Save(Mobile mob, BinaryMemoryWriter writer) { int length = writer.CommitTo(mobileData, mobileIndex, mob.m_TypeRef, mob.Serial); if (metrics != null) { metrics.OnMobileSaved(length); } }
private void Save(BaseGuild guild, BinaryMemoryWriter writer) { int length = writer.CommitTo(guildData, guildIndex, 0, guild.Id); if (metrics != null) { metrics.OnGuildSaved(length); } }
private void Save(Item item, BinaryMemoryWriter writer) { writer.CommitTo(itemData, itemIndex, item.m_TypeRef, item.Serial); if (item.Decays && item.Parent == null && item.Map != Map.Internal && DateTime.UtcNow > (item.LastMoved + item.DecayTime)) { _decayQueue.Enqueue(item); } }
private void Save(SaveData data, BinaryMemoryWriter writer) { int length = writer.CommitTo(customData, customIndex, data._TypeID, data.Serial); if (metrics != null) { metrics.OnDataSaved(length); } }
private void Save(BaseInstanceMap map, BinaryMemoryWriter writer) { int length = writer.CommitTo(mapData, mapIndex, map.m_TypeRef, map.Serial); if (metrics != null) { metrics.OnMapSaved(length); } if (map.Decays) { _decayMapQueue.Enqueue(map); } }
private void Save(Item item, BinaryMemoryWriter writer) { int length = writer.CommitTo(itemData, itemIndex, item.m_TypeRef, item.Serial); if (metrics != null) { metrics.OnItemSaved(length); } if (item.Decays && item.Parent == null && item.Map != Map.Internal && DateTime.Now > (item.LastMoved + item.DecayTime)) { _decayQueue.Enqueue(item); } }
private void Save(BaseGuild guild, BinaryMemoryWriter writer) { writer.CommitTo(guildData, guildIndex, 0, guild.Id); }
private void Save(Mobile mob, BinaryMemoryWriter writer) { writer.CommitTo(mobileData, mobileIndex, mob.m_TypeRef, mob.Serial); }