| 240 | } |
| 241 | |
| 242 | void 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 | |
| 255 | void SimDataBlockEvent::process(NetConnection *cptr) |
| 256 | { |
no test coverage detected