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(); }
public static void smethod_1(DarkOrbitWebAPI.NpcConstants npcConstants_0) { NpcUtils.< > c__DisplayClass124_0 CS$ < > 8__locals1; CS$ < > 8__locals1.uberPattern = "Uber([A-Z]\\S*)"; Dictionary <int, string> xmlNpcs = NpcUtils.XmlNpcs; lock (xmlNpcs) { if (NpcUtils.XmlNpcs.Count == 0) { foreach (DarkOrbitWebAPI.resourceItem resourceItem in npcConstants_0.Npcs) { int num; if (int.TryParse(resourceItem.name.Replace("npc_name_", ""), out num)) { string text = NpcUtils.smethod_2(resourceItem.Value, ref CS$ < > 8__locals1); NpcUtils.XmlNpcs[num] = text; NpcUtils.XmlNpcIds[text] = num; } } } } }