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

Method write

Engine/source/T3D/gameBase/gameConnectionEvents.cpp:220–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void SimDataBlockEvent::write(NetConnection *cptr, BitStream *bstream)
221{
222 if(bstream->writeFlag(mProcess))
223 {
224 bstream->writeInt(id - DataBlockObjectIdFirst,DataBlockObjectIdBitSize);
225 S32 classId = mObj->getClassId(cptr->getNetClassGroup());
226 bstream->writeClassId(classId, NetClassTypeDataBlock, cptr->getNetClassGroup());
227 bstream->writeInt(mIndex, DataBlockObjectIdBitSize);
228 bstream->writeInt(mTotal, DataBlockObjectIdBitSize + 1);
229 mObj->packData(bstream);
230 }
231}
232
233void SimDataBlockEvent::process(NetConnection *cptr)
234{

Callers 6

writeConnectAcceptMethod · 0.45
writeConnectRequestMethod · 0.45
writeDemoStartBlockMethod · 0.45
writePacketMethod · 0.45
packUpdateMethod · 0.45
writeDemoStartBlockMethod · 0.45

Calls 7

writeIntMethod · 0.80
getNetClassGroupMethod · 0.80
writeClassIdMethod · 0.80
writeFlagMethod · 0.45
getClassIdMethod · 0.45
packDataMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected