private void ReadOutputsSection2(BinaryReader reader) { outputs2Header = MapBlockHeader.Read(reader); outputs2Count = reader.ReadInt32(); for (int n = 0; n < outputs2Count; n++) { reader.ReadBytes(24); // data } }
public static MapBlockHeader Read(BinaryReader reader) { var header = new MapBlockHeader(); header.length = reader.ReadInt32(); // usually first 2 bytes have a value header.value2 = reader.ReadInt32(); // usually 0 header.value3 = reader.ReadInt16(); // 0,1,2,3 header.value4 = reader.ReadInt16(); // 0x1017 (sometimes 0x1018 return header; }
private void ReadOutputsSection2(BinaryReader reader) { this.outputs2Header = MapBlockHeader.Read(reader); this.outputs2Count = reader.ReadInt32(); for (int i = 0; i < this.outputs2Count; i++) { reader.ReadBytes(24); } }
private void ReadOutputsSection1(BinaryReader reader) { outputs1Header = MapBlockHeader.Read(reader); outputs1Count = reader.ReadInt32(); for (int n = 0; n < outputs1Count; n++) { byte[] data = reader.ReadBytes(20); } }
public static MapBlockHeader Read(BinaryReader reader) { var header = new MapBlockHeader(); header.length = reader.ReadInt32(); // usually first 2 bytes have a value header.value2 = reader.ReadInt32(); // usually 0 header.value3 = reader.ReadInt16(); // 0,1,2,3 header.value4 = reader.ReadInt16(); // 0x1017 (sometimes 0x1018 return(header); }
private void ReadOutputsSection3(BinaryReader reader) { outputs3Header = MapBlockHeader.Read(reader); if (outputs3Header.Length > 0) { outputs3Count = reader.ReadInt32(); for (int n = 0; n < outputs3Count; n++) { reader.ReadBytes(36); // data } } }
private void ReadOutputsSection3(BinaryReader reader) { this.outputs3Header = MapBlockHeader.Read(reader); if (this.outputs3Header.Length > 0) { this.outputs3Count = reader.ReadInt32(); for (int i = 0; i < this.outputs3Count; i++) { reader.ReadBytes(36); } } }
private void ReadMapName(BinaryReader reader) { this.mapNameHeader = MapBlockHeader.Read(reader); char[] array = reader.ReadChars(34); int num = 0; while (num < array.Length && array[num] != '\0') { num++; } this.mapName = new string(array, 0, num); reader.ReadBytes(98); }
private void ReadMapName(BinaryReader reader) { mapNameHeader = MapBlockHeader.Read(reader); char[] name = reader.ReadChars(34); int nameLength; for (nameLength = 0; nameLength < name.Length; nameLength++) { if (name[nameLength] == 0) { break; } } mapName = new string(name, 0, nameLength); reader.ReadBytes(98); // unknown }
private void ReadMapName(BinaryReader reader) { mapNameHeader = MapBlockHeader.Read(reader); char[] name = reader.ReadChars(34); int nameLength; for (nameLength = 0; nameLength < name.Length; nameLength++) { if (name[nameLength] == 0) break; } mapName = new string(name,0,nameLength); byte[] whatIsThisFor = reader.ReadBytes(98); }
private void ReadMapHeader(BinaryReader reader) { fileHeader1 = MapBlockHeader.Read(reader); fileHeader2 = MapBlockHeader.Read(reader); mapEntryCount = reader.ReadInt32(); }
private void ReadOutputsSection3(BinaryReader reader) { outputs3Header = MapBlockHeader.Read(reader); if (outputs3Header.Length > 0) { outputs3Count = reader.ReadInt32(); for (int n = 0; n < outputs3Count; n++) { byte[] data = reader.ReadBytes(36); } } }
private void ReadOutputsSection2(BinaryReader reader) { outputs2Header = MapBlockHeader.Read(reader); outputs2Count = reader.ReadInt32(); for (int n = 0; n < outputs2Count; n++) { byte[] data = reader.ReadBytes(24); } }
private void ReadMapHeader(BinaryReader reader) { fileHeader1 = MapBlockHeader.Read(reader); fileHeader2 = MapBlockHeader.Read(reader); mapEntryCount = reader.ReadInt32(); }
private void ReadOutputsSection1(BinaryReader reader) { outputs1Header = MapBlockHeader.Read(reader); outputs1Count = reader.ReadInt32(); for (int n = 0; n < outputs1Count; n++) { reader.ReadBytes(20); // data } }