public void Write(ref EndianWriter ew) { ew.WriteTag(TagClass); ew.WriteTag(TagParent2); ew.WriteTag(TagParent1); ew.Write(ID); ew.Write(FileNameOffset); ew.Write(MetaOffset); ew.Write((int)BitmapType); ew.Write(0); }
public void Write(ref EndianWriter ew) { uint pos = 0; // temp position ew.WriteTag("head".ToCharArray()); ew.Write((int)Version); ew.Write(DecompileLength); ew.Write(0); if (Version == VERSION.PC_DEMO) { pos = ew.Position; ew.Position = 0x5EC; ew.Write(OffsetToIndex); ew.Position = pos; } else { ew.Write(OffsetToIndex); } ew.Write(MetaDataSize); ew.Write(0); ew.Write(0); if (Version == VERSION.PC_DEMO) { pos = ew.Position; ew.Position = 0x5EC; ew.Write(Name, false); ew.Position = pos; } else { ew.Write(Name, false); } ew.Write(BuildDate, false); ew.Write((int)MapType); ew.Write(ID); ew.Write(0); for (int x = 0; x < 484; x++) { ew.Write(0); } ew.WriteTag(TagGroups.foot.Tag); }