Class SteamAvatarHandler
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class SteamAvatarHandler : RetrievableSingleton<SteamAvatarHandler>
- Inheritance
-
SteamAvatarHandler
- Inherited Members
-
RetrievableSingleton<SteamAvatarHandler>.OnRemoved()
RetrievableSingleton<SteamAvatarHandler>.RemoveInstance()
RetrievableSingleton<SteamAvatarHandler>.Instance
- Extension Methods
-
Constructors
SteamAvatarHandler()
public SteamAvatarHandler()
Fields
m_PersonaStateChange
public Callback<PersonaStateChange_t> m_PersonaStateChange
Field Value
- Callback<PersonaStateChange_t>
m_currentlyRequestedAvatars
public HashSet<ulong> m_currentlyRequestedAvatars
Field Value
- HashSet<ulong>
Methods
HasAvatarForPlayer(Player)
public static bool HasAvatarForPlayer(Player player)
Parameters
player
Player
Returns
- bool
OnCreated()
protected override void OnCreated()
OnPersonaStateChange(PersonaStateChange_t)
public void OnPersonaStateChange(PersonaStateChange_t param)
Parameters
param
PersonaStateChange_t
RequestSteamAvatar(CSteamID)
public static bool RequestSteamAvatar(CSteamID steamID)
Parameters
steamID
CSteamID
Returns
- bool
TryGetAvatarForPlayer(Player, out Sprite)
public static bool TryGetAvatarForPlayer(Player player, out Sprite icon)
Parameters
player
Player
icon
Sprite
Returns
- bool
TryGetSteamIDForPlayer(Player, out CSteamID)
public static bool TryGetSteamIDForPlayer(Player player, out CSteamID steamID)
Parameters
player
Player
steamID
CSteamID
Returns
- bool