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

Method eventReadStartBlock

Engine/source/sim/netEvent.cpp:432–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432void NetConnection::eventReadStartBlock(BitStream *stream)
433{
434 stream->read(&mNextRecvEventSeq);
435
436 NetEventNote *lastEvent = NULL;
437 while(stream->readFlag())
438 {
439 S32 classTag = stream->readClassId(NetClassTypeEvent, getNetClassGroup());
440 NetEvent *evt = (NetEvent *) ConsoleObject::create(getNetClassGroup(), NetClassTypeEvent, classTag);
441 evt->unpack(this, stream);
442 NetEventNote *add = mEventNoteChunker.alloc();
443 add->mEvent = evt;
444 evt->incRef();
445 add->mNextEvent = NULL;
446
447 if(!lastEvent)
448 mWaitSeqEvents = add;
449 else
450 lastEvent->mNextEvent = add;
451 lastEvent = add;
452 }
453}

Callers

nothing calls this directly

Calls 6

readFlagMethod · 0.80
readClassIdMethod · 0.80
readMethod · 0.45
unpackMethod · 0.45
allocMethod · 0.45
incRefMethod · 0.45

Tested by

no test coverage detected