Ejemplo n.º 1
0
        public void method_0()
        {
            this.IsX1            = MapUtils.IsX1(this);
            this.NpcTypes        = NpcUtils.smethod_0(this.MapId);
            this.MapName         = MapUtils.smethod_4(this.MapId);
            this.MapSize         = MapUtils.smethod_1(this.MapId);
            this.Center          = new Vector2((float)(this.MapSize.Width / 2), (float)(this.MapSize.Height / 2));
            this.RightCorner     = new Vector2((float)this.MapSize.Width, (float)this.MapSize.Height);
            this.Rect            = new Rectangle(0, 0, this.MapSize.Width, this.MapSize.Height);
            this.DefaultWorkArea = new List <Rectangle>
            {
                this.Rect
            };
            MapGrid grid = this.Grid;

            if (grid == null)
            {
                return;
            }
            grid.method_11();
        }
Ejemplo n.º 2
0
 public bool method_28(MapUtils.PortalEdge portalEdge_0, Gate gate_0 = null)
 {
     return((gate_0 != null && gate_0.FactionId == base.FactionId) || (portalEdge_0 != null && this.UkCbwSqhca(portalEdge_0, null) && !MapUtils.smethod_4(portalEdge_0.FromMapId).StartsWith("4-") && portalEdge_0.FactionId != 0 && portalEdge_0.FactionId == base.FactionId));
 }