| 785 | BitStream stream; |
| 786 | public: |
| 787 | NetDelayEvent(BitStream *inStream) : stream(NULL, 0) |
| 788 | { |
| 789 | dMemcpy(buffer, inStream->getBuffer(), inStream->getPosition()); |
| 790 | stream.setBuffer(buffer, inStream->getPosition()); |
| 791 | stream.setPosition(inStream->getPosition()); |
| 792 | } |
| 793 | void process(SimObject *object) |
| 794 | { |
| 795 | ((NetConnection *) object)->sendPacket(&stream); |
nothing calls this directly
no test coverage detected