public SellingPersistance() : base(1) { Movable = false; if (m_Instance == null || m_Instance.Deleted) { m_Instance = this; } else { base.Delete(); } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadEncodedInt(); m_TotalGoldPerDay = reader.ReadInt(); // !!!!!!!!!!!!!!!!!!! m_TotalGoldPerDay = 5000; // !!!!!!!!!!!!!!!!!!! m_DateLastReset = reader.ReadDateTime(); int count = reader.ReadInt(); for (int i = 0; i < count; ++i) { string key = reader.ReadString(); int value = reader.ReadInt(); m_TableUsername[key] = value; } int count2 = reader.ReadInt(); for (int i = 0; i < count2; ++i) { IPAddress key = reader.ReadIPAddress(); int value = reader.ReadInt(); m_TableIP[key] = value; } m_Instance = this; }