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 static Vector2 smethod_3(int int_0)
 {
     DarkorbitAPI.CommonStructures.Size size = MapUtils.smethod_1(int_0);
     return(new Vector2((float)size.Width / 2f, (float)size.Height / 2f));
 }