MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / ChatIDFromSteamID

Function ChatIDFromSteamID

src/common/steamid.cpp:595–601  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Returns the matching chat steamID, with the default instance of 0 Input: SteamID, either a Clan or a Chat type Output: SteamID with account type changed to chat, and the Clan flag set. If account type was not chat to start with, instance will be set to 0 ----------------------------------------------------------

Source from the content-addressed store, hash-verified

593// If account type was not chat to start with, instance will be set to 0
594//-----------------------------------------------------------------------------
595CSteamID ChatIDFromSteamID( const CSteamID &steamID )
596{
597 if ( steamID.GetEAccountType() == k_EAccountTypeChat )
598 return steamID;
599
600 return ChatIDFromClanID( steamID );
601}
602
603
604//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

ChatIDFromClanIDFunction · 0.85
GetEAccountTypeMethod · 0.80

Tested by

no test coverage detected