private unsafe void ParseFlags(SMAreaInfo* areaInfos) { Flags = new int[Wdt.AdtsPerSide, Wdt.AdtsPerSide]; for (int r = 0; r < Wdt.AdtsPerSide; r++) { for (int c = 0; c < Wdt.AdtsPerSide; c++) { var index = r*Wdt.AdtsPerSide + c; Flags[r, c] = areaInfos[index].flags; } } }
public void Read(BinaryReader reader) { for (var x = 0; x < 64; ++x) { Data[x] = new SMAreaInfo[64]; for (var y = 0; y < 64; ++y) { Data[x][y] = reader.Read <SMAreaInfo>(); } } }