| 64 | { delete object; } |
| 65 | |
| 66 | void pack(NetConnection *ps, BitStream *bstream) |
| 67 | { |
| 68 | bstream->writeInt(ghostIndex, NetConnection::GhostIdBitSize); |
| 69 | |
| 70 | NetObject *obj = (NetObject *) Sim::findObject(objectId); |
| 71 | if(bstream->writeFlag(obj != NULL)) |
| 72 | { |
| 73 | S32 classId = obj->getClassId(ps->getNetClassGroup()); |
| 74 | bstream->writeClassId(classId, NetClassTypeObject, ps->getNetClassGroup()); |
| 75 | #ifdef TORQUE_NET_STATS |
| 76 | U32 beginSize = bstream->getBitPosition(); |
| 77 | #endif |
| 78 | U32 retMask = obj->packUpdate(ps, 0xFFFFFFFF, bstream); |
| 79 | if ( retMask != 0 ) obj->setMaskBits( retMask ); |
| 80 | |
| 81 | #ifdef TORQUE_NET_STATS |
| 82 | obj->getClassRep()->updateNetStatPack(0xFFFFFFFF, bstream->getBitPosition() - beginSize); |
| 83 | #endif |
| 84 | } |
| 85 | } |
| 86 | void write(NetConnection *ps, BitStream *bstream) |
| 87 | { |
| 88 | bstream->writeInt(ghostIndex, NetConnection::GhostIdBitSize); |
nothing calls this directly
no test coverage detected