private static byte[,] ReadMap(this BinaryReader reader) { byte[] data = reader.ReadBytes(w * h); return(BinaryConversion.ToColorRectangle(data, h, w)); }
private static void ReadMap(this BinaryReader reader) { byte[] data = reader.ReadBytes(w * h); initialMapState = BinaryConversion.ToColorRectangle(data, h, w); }