Esempio n. 1
0
        public static void Initialize()
        {
            if (m_RemoveList != null)
            {
                foreach (object obj in m_RemoveList)
                {
                    if (obj is Mobile)
                    {
                        ((Mobile)obj).Delete();
                    }
                    else
                    {
                        ((Item)obj).Delete();
                    }
                }

                m_RemoveList = null;
            }

            SpawnPersistence.EnsureExistence();

            CommandSystem.Register("RespawnAllRegions", AccessLevel.Administrator, new CommandEventHandler(RespawnAllRegions_OnCommand));
            CommandSystem.Register("RespawnRegion", AccessLevel.GameMaster, new CommandEventHandler(RespawnRegion_OnCommand));
            CommandSystem.Register("DelAllRegionSpawns", AccessLevel.Administrator, new CommandEventHandler(DelAllRegionSpawns_OnCommand));
            CommandSystem.Register("DelRegionSpawns", AccessLevel.GameMaster, new CommandEventHandler(DelRegionSpawns_OnCommand));
            CommandSystem.Register("StartAllRegionSpawns", AccessLevel.Administrator, new CommandEventHandler(StartAllRegionSpawns_OnCommand));
            CommandSystem.Register("StartRegionSpawns", AccessLevel.GameMaster, new CommandEventHandler(StartRegionSpawns_OnCommand));
            CommandSystem.Register("StopAllRegionSpawns", AccessLevel.Administrator, new CommandEventHandler(StopAllRegionSpawns_OnCommand));
            CommandSystem.Register("StopRegionSpawns", AccessLevel.GameMaster, new CommandEventHandler(StopRegionSpawns_OnCommand));
        }
 public static void EnsureExistence()
 {
     if (m_Instance == null)
     {
         m_Instance = new SpawnPersistence();
     }
 }
Esempio n. 3
0
        public static void Initialize()
        {
            if (m_RemoveList != null)
            {
                for (var index = 0; index < m_RemoveList.Count; index++)
                {
                    IEntity ent = m_RemoveList[index];

                    ent.Delete();
                }

                m_RemoveList = null;
            }

            SpawnPersistence.EnsureExistence();

            CommandSystem.Register("RespawnAllRegions", AccessLevel.Administrator, RespawnAllRegions_OnCommand);
            CommandSystem.Register("RespawnRegion", AccessLevel.GameMaster, RespawnRegion_OnCommand);
            CommandSystem.Register("DelAllRegionSpawns", AccessLevel.Administrator, DelAllRegionSpawns_OnCommand);
            CommandSystem.Register("DelRegionSpawns", AccessLevel.GameMaster, DelRegionSpawns_OnCommand);
            CommandSystem.Register("StartAllRegionSpawns", AccessLevel.Administrator, StartAllRegionSpawns_OnCommand);
            CommandSystem.Register("StartRegionSpawns", AccessLevel.GameMaster, StartRegionSpawns_OnCommand);
            CommandSystem.Register("StopAllRegionSpawns", AccessLevel.Administrator, StopAllRegionSpawns_OnCommand);
            CommandSystem.Register("StopRegionSpawns", AccessLevel.GameMaster, StopRegionSpawns_OnCommand);
        }
Esempio n. 4
0
        public static void Initialize()
        {
            if (m_RemoveList != null)
            {
                foreach (IEntity ent in m_RemoveList)
                {
                    ent.Delete();
                }

                m_RemoveList = null;
            }

            SpawnPersistence.EnsureExistence();

            CommandSystem.Register("RespawnAllRegions", AccessLevel.Administrator, RespawnAllRegions_OnCommand);
            CommandSystem.Register("RespawnRegion", AccessLevel.GameMaster, RespawnRegion_OnCommand);
            CommandSystem.Register("DelAllRegionSpawns", AccessLevel.Administrator, DelAllRegionSpawns_OnCommand);
            CommandSystem.Register("DelRegionSpawns", AccessLevel.GameMaster, DelRegionSpawns_OnCommand);
            CommandSystem.Register("StartAllRegionSpawns", AccessLevel.Administrator, StartAllRegionSpawns_OnCommand);
            CommandSystem.Register("StartRegionSpawns", AccessLevel.GameMaster, StartRegionSpawns_OnCommand);
            CommandSystem.Register("StopAllRegionSpawns", AccessLevel.Administrator, StopAllRegionSpawns_OnCommand);
            CommandSystem.Register("StopRegionSpawns", AccessLevel.GameMaster, StopRegionSpawns_OnCommand);
        }
Esempio n. 5
0
        public static void Initialize()
        {
            if (m_RemoveList != null)
            {
                foreach (IEntity ent in m_RemoveList)
                {
                    ent.Delete();
                }

                m_RemoveList = null;
            }

            SpawnPersistence.EnsureExistence();

            CommandSystem.Register("RespawnAllRegions", AccessLevel.Coordinateur, new CommandEventHandler(RespawnAllRegions_OnCommand));
            CommandSystem.Register("RespawnRegion", AccessLevel.Batisseur, new CommandEventHandler(RespawnRegion_OnCommand));
            CommandSystem.Register("DelAllRegionSpawns", AccessLevel.Coordinateur, new CommandEventHandler(DelAllRegionSpawns_OnCommand));
            CommandSystem.Register("DelRegionSpawns", AccessLevel.Batisseur, new CommandEventHandler(DelRegionSpawns_OnCommand));
            CommandSystem.Register("StartAllRegionSpawns", AccessLevel.Coordinateur, new CommandEventHandler(StartAllRegionSpawns_OnCommand));
            CommandSystem.Register("StartRegionSpawns", AccessLevel.Batisseur, new CommandEventHandler(StartRegionSpawns_OnCommand));
            CommandSystem.Register("StopAllRegionSpawns", AccessLevel.Coordinateur, new CommandEventHandler(StopAllRegionSpawns_OnCommand));
            CommandSystem.Register("StopRegionSpawns", AccessLevel.Batisseur, new CommandEventHandler(StopRegionSpawns_OnCommand));
            //CommandSystem.Register("ResetSpawnTime", AccessLevel.Administrator, new CommandEventHandler(ResetSpawnTime_OnCommand));
        }
Esempio n. 6
0
 public static void EnsureExistence()
 {
     if ( m_Instance == null )
         m_Instance = new SpawnPersistence();
 }
Esempio n. 7
0
 public SpawnPersistence( Serial serial )
     : base(serial)
 {
     m_Instance = this;
 }
 public SpawnPersistence(Serial serial)
     : base(serial)
 {
     m_Instance = this;
 }