public virtual bool ParseCheckpointContent(ChunkArchive ar, string id, string group, string metadata, uint time1, uint time2) { if ((DemoHeader !.HeaderFlags & DemoHeader.ReplayHeaderFlags.HasStreamingFixes) > 0) { long packetOffset = ar.ReadInt64(); } if (DemoHeader !.NetworkVersion >= NetworkVersionHistory.multipleLevels) { int levelForCheckpoint = ar.ReadInt32(); } if (DemoHeader !.NetworkVersion >= NetworkVersionHistory.deletedStartupActors) { string[] deletedNetStartupActors = ar.ReadArray(ar.ReadString); } int valuesCount = ar.ReadInt32(); for (int i = 0; i < valuesCount; i++) { uint guid = ar.ReadIntPacked(); uint outerGuid = ar.ReadIntPacked(); string path = ar.ReadString(); uint checksum = ar.ReadUInt32(); byte flags = ar.ReadByte(); } NetFieldExportGroupMap(ar); ParsePlaybackPacket(ar); // File.WriteAllBytes( "dump.dump", binaryReader.DumpRemainingBytes() ); return(true); }
public virtual bool NetFieldExportGroupMap(ChunkArchive binaryReader) { uint numNetFieldExportGroups = binaryReader.ReadUInt32(); for (int i = 0; i < numNetFieldExportGroups; i++) { ParseNetFieldExportGroup(binaryReader); } return(true); }