Ejemplo n.º 1
0
        public bool ValidSpawnLocation(Point3D loc, Map map)
        {
            if (m_RegisteredInvasionRegion == null)
            {
                return(false);
            }

            if (!m_RegisteredInvasionRegion.Contains(loc))
            {
                return(false);
            }

            if (!m_RegisteredInvasionRegion.RegionSpawnTable.ContainsKey(loc))
            {
                return(false);
            }

            if (!(bool)m_RegisteredInvasionRegion.RegionSpawnTable[loc])
            {
                return(false);
            }

            return(true);
        }