MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / unpack

Method unpack

src/clientbase/Weapon.cpp:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29void* Weapon::unpack(void* buf) {
30 uint16_t delayCount;
31
32 buf = FlagType::unpack(buf, type);
33 buf = nboUnpackFVec3(buf, pos);
34 buf = nboUnpackFloat(buf, dir);
35 buf = nboUnpackFloat(buf, initDelay);
36 buf = nboUnpackUInt16(buf, delayCount);
37
38 int i;
39 for (i = 0; i < delayCount; i++) {
40 float delayValue;
41 buf = nboUnpackFloat(buf, delayValue);
42 delay.push_back(delayValue);
43 }
44
45 return buf;
46}
47
48
49// Local Variables: ***

Callers 7

loadCachedMethod · 0.45
handleFlagUpdateFunction · 0.45
handleTeamUpdateFunction · 0.45
handleDropFlagFunction · 0.45
handleTransferFlagFunction · 0.45
handleAdminInfoFunction · 0.45
handlePlayerUpdateFunction · 0.45

Calls 4

nboUnpackFVec3Function · 0.85
nboUnpackFloatFunction · 0.85
nboUnpackUInt16Function · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected