public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_Active = reader.ReadBool(); m_AllSpawn = reader.ReadItemList(); m_DungeonsSpawn = reader.ReadItemList(); m_RandomizeDelay = reader.ReadTimeSpan(); m_ActiveAltars = reader.ReadInt(); //m_SpawnRange = 24; m_ExpireDelay = TimeSpan.FromMinutes(10.0); m_RestartDelay = TimeSpan.FromMinutes(5.0); if (m_Active) { m_Timer = new MiniRandomizeTimer(this, m_RandomizeDelay); m_Timer.Start(); } break; } } }
public void Start() { if (m_Active || Deleted) { return; } m_Active = true; if (m_Timer == null) { m_Timer = new MiniRandomizeTimer(this, m_RandomizeDelay); } //Randomize(m_DungeonsSpawn); m_Timer.Start(); }