Beispiel #1
0
            public override bool AcceptsSpawnsFrom(Region region)
            {
                if (Parent != null)
                {
                    return(Parent.AcceptsSpawnsFrom(region));
                }

                return(base.AcceptsSpawnsFrom(region));
            }
Beispiel #2
0
        public virtual bool AcceptsSpawnsFrom(Region region)
        {
            if (!AllowSpawn())
            {
                return(false);
            }

            if (region == this)
            {
                return(true);
            }

            if (Parent != null)
            {
                return(Parent.AcceptsSpawnsFrom(region));
            }

            return(false);
        }