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

Method writeDemoStartBlock

Engine/source/sim/netConnection.cpp:920–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918//--------------------------------------------------------------------
919
920void 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
946bool NetConnection::readDemoStartBlock(BitStream* stream)
947{

Callers

nothing calls this directly

Calls 3

dumpStateMethod · 0.80
writeMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected