Exemple #1
0
        public ShadowguardInstance(ShadowguardController controller, Point3D center, Rectangle2D bounds, int index)
        {
            Controller = controller;
            Center     = center;
            Index      = index;

            Region = new ShadowguardRegion(bounds, index >= 13 ? String.Format("Roof {0}", (index - 12).ToString()) : index.ToString(), this);
            Region.Register();
        }
Exemple #2
0
        public static ShadowguardInstance GetInstance(Point3D p, Map map)
        {
            ShadowguardRegion r = Region.Find(p, map) as ShadowguardRegion;

            if (r != null)
            {
                return(r.Instance);
            }

            return(null);
        }
Exemple #3
0
        public static ShadowguardEncounter GetEncounter(Point3D p, Map map)
        {
            ShadowguardRegion r = Region.Find(p, map) as ShadowguardRegion;

            if (r != null)
            {
                return(r.Instance.Encounter);
            }

            return(null);
        }