MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / MultiSendRequestForBuildings

Function MultiSendRequestForBuildings

Descent3/multi_client.cpp:240–252  ·  view source on GitHub ↗

Ask the server to tell me about the buildings

Source from the content-addressed store, hash-verified

238
239// Ask the server to tell me about the buildings
240void MultiSendRequestForBuildings() {
241 int size;
242 uint8_t data[MAX_GAME_DATA_SIZE];
243 int count = 0;
244
245 mprintf(0, "Sending request for buildings\n");
246
247 size = START_DATA(MP_REQUEST_BUILDINGS, data, &count);
248 MultiAddByte(Player_num, data, &count);
249 END_DATA(count, data, size);
250
251 nw_SendReliable(NetPlayers[Player_num].reliable_socket, data, count);
252}
253
254// Ask the server to tell me about the world
255void MultiSendRequestForWorldStates() {

Callers 1

MultiDoClientFrameFunction · 0.85

Calls 4

START_DATAFunction · 0.85
MultiAddByteFunction · 0.85
END_DATAFunction · 0.85
nw_SendReliableFunction · 0.85

Tested by

no test coverage detected