Exemplo n.º 1
0
        public override void OnDelete()
        {
            base.OnDelete();

            if ( m_RespawnTimer != null )
            {
                m_RespawnTimer.Stop();
                m_RespawnTimer = null;
            }

            foreach ( ChestInstance ci in m_Artifacts )
            {
                if ( ci.Item != null )
                    ci.Item.Delete();
            }

            m_Instance = null;
        }
Exemplo n.º 2
0
        public static bool Create()
        {
            if ( m_Instance != null && !m_Instance.Deleted )
                return false;

            m_Instance = new DungeonChestsSpawner();
            return true;
        }
Exemplo n.º 3
0
        public static bool Remove()
        {
            if ( m_Instance == null )
                return false;

            m_Instance.Delete();
            m_Instance = null;
            return true;
        }
Exemplo n.º 4
0
 public DungeonChestsSpawner( Serial serial )
     : base(serial)
 {
     m_Instance = this;
 }