MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / writeDemoStartBlock

Method writeDemoStartBlock

Engine/source/sim/netConnection.cpp:925–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923//--------------------------------------------------------------------
924
925void 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
951bool NetConnection::readDemoStartBlock(BitStream* stream)
952{

Callers

nothing calls this directly

Calls 3

dumpStateMethod · 0.80
writeMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected