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

Function SetClientIdHelper

src/network/network_command.cpp:412–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410/** Helper to process a single ClientID argument. */
411template <class T>
412static inline void SetClientIdHelper(T &data, [[maybe_unused]] ClientID client_id)
413{
414 if constexpr (std::is_same_v<ClientID, T>) {
415 data = client_id;
416 }
417}
418
419/** Set all invalid ClientID's to the proper value. */
420template <class Ttuple, size_t... Tindices>

Callers 2

SetClientIdsFunction · 0.70
SetClientIdsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected