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

Function ClanIDFromSteamID

src/common/steamid.cpp:610–616  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

608// If account type was not clan to start with, instance will be set to 0
609//-----------------------------------------------------------------------------
610CSteamID ClanIDFromSteamID( const CSteamID &steamID )
611{
612 if ( steamID.GetEAccountType() == k_EAccountTypeClan )
613 return steamID;
614
615 return ClanIDFromChatID( steamID );
616}
617
618
619// Asserts steamID type before conversion

Callers

nothing calls this directly

Calls 2

ClanIDFromChatIDFunction · 0.85
GetEAccountTypeMethod · 0.80

Tested by

no test coverage detected