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

Method write

Engine/source/T3D/gameBase/gameConnectionEvents.cpp:242–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void SimDataBlockEvent::write(NetConnection *cptr, BitStream *bstream)
243{
244 if(bstream->writeFlag(mProcess))
245 {
246 bstream->writeInt(id - DataBlockObjectIdFirst,DataBlockObjectIdBitSize);
247 S32 classId = mObj->getClassId(cptr->getNetClassGroup());
248 bstream->writeClassId(classId, NetClassTypeDataBlock, cptr->getNetClassGroup());
249 bstream->writeInt(mIndex, DataBlockObjectIdBitSize);
250 bstream->writeInt(mTotal, DataBlockObjectIdBitSize + 1);
251 mObj->packData(bstream);
252 }
253}
254
255void SimDataBlockEvent::process(NetConnection *cptr)
256{

Callers 7

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

Calls 7

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

Tested by

no test coverage detected