MCPcopy Create free account
hub / github.com/Segs/Segs / storePosUpdate

Function storePosUpdate

Projects/CoX/Servers/MapServer/EntityUpdateCodec.cpp:156–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void storePosUpdate(const Entity &src, bool just_created, BitStream &bs)
157{
158 PUTDEBUG("before entReceivePosUpdate");
159 bool position_updated = storePosition(src, bs);
160
161 PUTDEBUG("before posInterpolators");
162 if(!just_created && position_updated)
163 {
164 // if position has changed
165 // prepare interpolation table, given previous position
166 bs.StoreBits(1, src.m_has_interp);
167 if(src.m_has_interp)
168 {
169 bs.StoreBits(1, src.m_move_instantly);
170 if(!src.m_move_instantly)
171 storeInterpolationTree(src, bs); // Bintree sending happens here
172 }
173 }
174 PUTDEBUG("before storeOrientation");
175 storeOrientation(src,bs);
176 PUTDEBUG("after storeOrientation");
177}
178
179void sendSeqMoveUpdate(const Entity &src, BitStream &bs)
180{

Callers 1

serializetoFunction · 0.85

Calls 4

storePositionFunction · 0.85
storeInterpolationTreeFunction · 0.85
storeOrientationFunction · 0.85
StoreBitsMethod · 0.45

Tested by

no test coverage detected