MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / unpackUpdate

Method unpackUpdate

Engine/source/navigation/navPath.cpp:672–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672void 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
703DefineEngineMethod(NavPath, plan, bool, (),,
704 "@brief Find a path using the already-specified path properties.")

Callers

nothing calls this directly

Calls 7

mathReadFunction · 0.85
readFlagMethod · 0.80
readIntMethod · 0.80
resizeFunction · 0.50
clearMethod · 0.45
setSizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected