| 670 | } |
| 671 | |
| 672 | void NavPath::unpackUpdate(NetConnection *conn, BitStream *stream) |
| 673 | { |
| 674 | Parent::unpackUpdate(conn, stream); |
| 675 | |
| 676 | mIsLooping = stream->readFlag(); |
| 677 | mAlwaysRender = stream->readFlag(); |
| 678 | mXray = stream->readFlag(); |
| 679 | mRenderSearch = stream->readFlag(); |
| 680 | |
| 681 | if((mFromSet = stream->readFlag()) == true) |
| 682 | mathRead(*stream, &mFrom); |
| 683 | if((mToSet = stream->readFlag()) == true) |
| 684 | mathRead(*stream, &mTo); |
| 685 | |
| 686 | if(stream->readFlag()) |
| 687 | { |
| 688 | mPoints.clear(); |
| 689 | mFlags.clear(); |
| 690 | mPoints.setSize(stream->readInt(32)); |
| 691 | mFlags.setSize(mPoints.size()); |
| 692 | for(U32 i = 0; i < mPoints.size(); i++) |
| 693 | { |
| 694 | Point3F p; |
| 695 | mathRead(*stream, &p); |
| 696 | mPoints[i] = p; |
| 697 | mFlags[i] = stream->readInt(16); |
| 698 | } |
| 699 | resize(); |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | DefineEngineMethod(NavPath, plan, bool, (),, |
| 704 | "@brief Find a path using the already-specified path properties.") |