// Token: 0x060004F3 RID: 1267 RVA: 0x0001CE34 File Offset: 0x0001B034 public void MapInfo(MapInfoPacket mapInfo) { this._index = 0; if (MapHack._maps != null) { this._needsNewTiles = (this._needsScan = (mapInfo.Name == "Realm of the Mad God")); foreach (KeyValuePair <string, Tile[]> keyValuePair in MapHack._maps) { if (keyValuePair.Key == mapInfo.Name) { this._mapToReplace = keyValuePair.Value; this._needsNewTiles = true; this._needsScan = false; break; } } this._fp = mapInfo.Fp.ToString(); if (mapInfo.Name == "Realm of the Mad God") { if (MapHack._fpMap.ContainsKey(this._fp)) { Console.WriteLine(string.Format("Using map {0} {1}", this._fp, MapHack._fpMap[this._fp])); this._mapToReplace = MapHack._maps[string.Format("Realm of the Mad God World {0}", MapHack._fpMap[this._fp])]; this._needsNewTiles = true; this._needsScan = false; return; } this._realmTiles = new List <Tile>(); this._mapScores = new Dictionary <int, int>(); foreach (KeyValuePair <byte, Dictionary <MapHack.ShortPos, ushort> > keyValuePair2 in MapHack._realms) { this._mapScores.Add((int)keyValuePair2.Key, 0); } } return; } Console.WriteLine("Maps list is null, unable to replace maps, trying to parse again"); MapHack.ParseMapFiles(); }
// Token: 0x060004F0 RID: 1264 RVA: 0x0001CAF4 File Offset: 0x0001ACF4 static MapHack() { MapHack.ParseMapFiles(); }