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

Method eventWriteStartBlock

Engine/source/sim/netEvent.cpp:418–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416
417
418void NetConnection::eventWriteStartBlock(ResizeBitStream *stream)
419{
420 stream->write(mNextRecvEventSeq);
421 for(NetEventNote *walk = mWaitSeqEvents; walk; walk = walk->mNextEvent)
422 {
423 stream->writeFlag(true);
424 S32 classId = walk->mEvent->getClassId(getNetClassGroup());
425 stream->writeClassId(classId, NetClassTypeEvent, getNetClassGroup());
426 walk->mEvent->write(this, stream);
427 stream->validate();
428 }
429 stream->writeFlag(false);
430}
431
432void NetConnection::eventReadStartBlock(BitStream *stream)
433{

Callers

nothing calls this directly

Calls 5

writeClassIdMethod · 0.80
writeMethod · 0.45
writeFlagMethod · 0.45
getClassIdMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected