| 218 | } |
| 219 | |
| 220 | void 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 | |
| 233 | void SimDataBlockEvent::process(NetConnection *cptr) |
| 234 | { |
no test coverage detected