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