MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetClientIds

Function SetClientIds

src/network/network_command.cpp:421–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419/** Set all invalid ClientID's to the proper value. */
420template <class Ttuple, size_t... Tindices>
421static inline void SetClientIds(Ttuple &values, ClientID client_id, std::index_sequence<Tindices...>)
422{
423 ((SetClientIdHelper(std::get<Tindices>(values), client_id)), ...);
424}
425
426template <Commands Tcmd>
427static void NetworkReplaceCommandClientId(CommandPacket &cp, ClientID client_id)

Callers 2

InternalPostMethod · 0.50

Calls 1

SetClientIdHelperFunction · 0.70

Tested by

no test coverage detected