private void writeBinaryHeader(ArkArchive archive) { archive.WriteShort(SaveVersion); if (SaveVersion > 6) { archive.WriteInt(hibernationOffset); archive.WriteInt(0); } if (SaveVersion > 5) { archive.WriteInt(nameTableOffset); archive.WriteInt(propertiesBlockOffset); } archive.WriteFloat(GameTime); if (SaveVersion > 8) { archive.WriteInt(SaveCount); } }