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

Function MultiSendTypeIcon

Descent3/multi.cpp:8366–8376  ·  view source on GitHub ↗

tell the clients that a player is [not] typing a message

Source from the content-addressed store, hash-verified

8364
8365// tell the clients that a player is [not] typing a message
8366void MultiSendTypeIcon(int pnum, bool typing_message) {
8367 int count = 0;
8368 uint8_t data[MAX_GAME_DATA_SIZE];
8369 int size_offset;
8370 size_offset = START_DATA(MP_SEND_TYPE_ICON, data, &count);
8371 MultiAddByte(pnum, data, &count);
8372 MultiAddByte((typing_message) ? 1 : 0, data, &count);
8373 END_DATA(count, data, size_offset);
8374 MultiSendReliablyToAllExcept(Player_num, data, count, NETSEQ_PLAYERS, false);
8375 MultiDoTypeIcon(data);
8376}
8377
8378// process a request by a client that he is [not] typing a message
8379void MultiDoRequestTypeIcon(uint8_t *data) {

Callers 1

MultiDoRequestTypeIconFunction · 0.85

Calls 5

START_DATAFunction · 0.85
MultiAddByteFunction · 0.85
END_DATAFunction · 0.85
MultiDoTypeIconFunction · 0.85

Tested by

no test coverage detected