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

Function handleGetWorld

src/clientbase/playing.cpp:1240–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1238
1239
1240void handleGetWorld(void* msg, uint16_t len) {
1241 int32_t bytesLeft;
1242 msg = nboUnpackInt32(msg, bytesLeft);
1243 const uint32_t worldPtr =
1244 worldDownLoader->processChunk(msg, len - 4, bytesLeft);
1245 if (worldPtr > 0) {
1246 // ask for more
1247 char message[MaxPacketLen];
1248 nboPackUInt32(message, worldPtr);
1249 serverLink->send(MsgGetWorld, sizeof(uint32_t), message);
1250 }
1251}
1252
1253
1254void handleGameTime(void* msg) {

Callers 1

handleServerMessageFunction · 0.85

Calls 4

nboUnpackInt32Function · 0.85
nboPackUInt32Function · 0.85
processChunkMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected