示例#1
0
 public void RemoveSpawnPoint(DMSpawnPoint spawnPoint)
 {
     if (m_DMSpawnPoints.Contains(spawnPoint))
     {
         m_DMSpawnPoints.Remove(spawnPoint);
     }
 }
示例#2
0
 public void AddSpawnPoint(DMSpawnPoint spawnPoint)
 {
     if (!m_DMSpawnPoints.Contains(spawnPoint))
     {
         m_DMSpawnPoints.Add(spawnPoint);
     }
 }
示例#3
0
        public void SpawnMobile(Mobile m)
        {
            if (DMSpawnPoints.Count > 0)
            {
                int rand = Utility.RandomMinMax(0, DMSpawnPoints.Count - 1);

                DMSpawnPoint sp = (DMSpawnPoint)DMSpawnPoints[rand];
                if (sp == null)
                {
                    World.Broadcast(38, false, "Error: Cannot spawn player {0} to deathmatch {1} when spawnpoints do not exist", m.Serial, this.Serial);
                    RemovePlayer(m);
                }
                else
                {
                    m.MoveToWorld(sp.Location, sp.Map);
                }
            }
            else
            {
                World.Broadcast(38, false, "Error: Cannot spawn player {0} to deathmatch {1} when spawnpoints do not exist", m.Serial, this.Serial);
                RemovePlayer(m);
            }
        }
示例#4
0
 public void AddSpawnPoint(DMSpawnPoint spawnPoint)
 {
     if (!m_DMSpawnPoints.Contains(spawnPoint))
         m_DMSpawnPoints.Add(spawnPoint);
 }
示例#5
0
 public void RemoveSpawnPoint(DMSpawnPoint spawnPoint)
 {
     if (m_DMSpawnPoints.Contains(spawnPoint))
         m_DMSpawnPoints.Remove(spawnPoint);
 }