| 430 | } |
| 431 | |
| 432 | void NetConnection::eventReadStartBlock(BitStream *stream) |
| 433 | { |
| 434 | stream->read(&mNextRecvEventSeq); |
| 435 | |
| 436 | NetEventNote *lastEvent = NULL; |
| 437 | while(stream->readFlag()) |
| 438 | { |
| 439 | S32 classTag = stream->readClassId(NetClassTypeEvent, getNetClassGroup()); |
| 440 | NetEvent *evt = (NetEvent *) ConsoleObject::create(getNetClassGroup(), NetClassTypeEvent, classTag); |
| 441 | evt->unpack(this, stream); |
| 442 | NetEventNote *add = mEventNoteChunker.alloc(); |
| 443 | add->mEvent = evt; |
| 444 | evt->incRef(); |
| 445 | add->mNextEvent = NULL; |
| 446 | |
| 447 | if(!lastEvent) |
| 448 | mWaitSeqEvents = add; |
| 449 | else |
| 450 | lastEvent->mNextEvent = add; |
| 451 | lastEvent = add; |
| 452 | } |
| 453 | } |