| 923 | //-------------------------------------------------------------------- |
| 924 | |
| 925 | void NetConnection::writeDemoStartBlock(ResizeBitStream* stream) |
| 926 | { |
| 927 | ConnectionProtocol::writeDemoStartBlock(stream); |
| 928 | |
| 929 | stream->write(mRoundTripTime); |
| 930 | stream->write(mPacketLoss); |
| 931 | #ifndef TORQUE_TGB_ONLY |
| 932 | // Write all the current paths to the stream... |
| 933 | gClientPathManager->dumpState(stream); |
| 934 | #endif |
| 935 | stream->validate(); |
| 936 | mStringTable->writeDemoStartBlock(stream); |
| 937 | |
| 938 | U32 start = 0; |
| 939 | PacketNotify *note = mNotifyQueueHead; |
| 940 | while(note) |
| 941 | { |
| 942 | start++; |
| 943 | note = note->nextPacket; |
| 944 | } |
| 945 | stream->write(start); |
| 946 | |
| 947 | eventWriteStartBlock(stream); |
| 948 | ghostWriteStartBlock(stream); |
| 949 | } |
| 950 | |
| 951 | bool NetConnection::readDemoStartBlock(BitStream* stream) |
| 952 | { |