public void Spawn()
        {
            LuniteOreFormation luniteOreFormation = new LuniteOreFormation();

            luniteOreFormation.m_LuniteOreFormationSpawner = this;
            luniteOreFormation.MoveToWorld(Location, Map);
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            //Version 0
            m_Activated         = reader.ReadBool();
            m_InstanceCount     = reader.ReadInt();
            m_SpawnAllAvailable = reader.ReadBool();
            m_HomeRange         = reader.ReadInt();
            m_SpawnRange        = reader.ReadInt();
            m_MinSpawnTime      = reader.ReadInt();
            m_MaxSpawnTime      = reader.ReadInt();

            m_LastActivity = reader.ReadDateTime();
            m_NextActivity = reader.ReadTimeSpan();

            int formationCount = reader.ReadInt();

            for (int a = 0; a < formationCount; a++)
            {
                LuniteOreFormation luniteFormation = (LuniteOreFormation)reader.ReadItem();
            }

            //----------------

            m_SpawnTimer = new SpawnTimer(this);
            m_SpawnTimer.Start();
        }
        public void DeleteSpawn()
        {
            LuniteOreFormation luniteOreFormation = null;

            IPooledEnumerable nearbyItems = Map.GetItemsInRange(Location, 0);

            foreach (Item item in nearbyItems)
            {
                if (item is LuniteOreFormation)
                {
                    luniteOreFormation = (LuniteOreFormation)item;
                }
            }

            nearbyItems.Free();

            if (luniteOreFormation != null)
            {
                luniteOreFormation.Delete();
            }
        }