Documentation ¶
Index ¶
- Constants
- type AccountInstance
- type ChatInstanceFlag
- type SteamId
- func (s SteamId) ChatToClan() SteamId
- func (s SteamId) ClanToChat() SteamId
- func (s SteamId) GetAccountId() uint32
- func (s SteamId) GetAccountInstance() AccountInstance
- func (s SteamId) GetAccountType() int32
- func (s SteamId) GetAccountUniverse() int32
- func (s SteamId) SetAccountId(id uint32) SteamId
- func (s SteamId) SetAccountInstance(value uint32) SteamId
- func (s SteamId) SetAccountType(t int32) SteamId
- func (s SteamId) SetAccountUniverse(universe int32) SteamId
- func (s SteamId) String() string
- func (s SteamId) ToSteam2() string
- func (s SteamId) ToSteam3() string
- func (s SteamId) ToString() string
- func (s SteamId) ToUint64() uint64
Constants ¶
View Source
const ( // ChatInstanceFlagClan is set for clan based chat steam ids. ChatInstanceFlagClan ChatInstanceFlag = ChatInstanceFlag((AccountInstanceMask + 1) >> 1) // ChatInstanceFlagLobby is set for lobby based chat steam ids. ChatInstanceFlagLobby = ChatInstanceFlag((AccountInstanceMask + 1) >> 2) // ChatInstanceFlagMMSLobby is set for matchmaking lobby based chat steam ids. ChatInstanceFlagMMSLobby = ChatInstanceFlag((AccountInstanceMask + 1) >> 3) )
View Source
const AccountInstanceMask uint32 = 0x000FFFFF
AccountInstanceMask is used for packing chat instance flags in a steam ID.
View Source
const ConsoleInstance uint32 = 2
ConsoleInstance is the account instance value for a console.
View Source
const DesktopInstance uint32 = 1
DesktopInstance is the account instance value for a desktop.
View Source
const WebInstance uint32 = 4
WebInstance is the account instance value for mobile or web-based.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInstance ¶
type AccountInstance uint32
AccountInstance is an instance of an account.
func (AccountInstance) HasFlag ¶
func (i AccountInstance) HasFlag(flag uint32) bool
HasFlag sees if the flag is set.
type ChatInstanceFlag ¶
type ChatInstanceFlag uint32
ChatInstanceFlag is a flag a chat steam ID may have.
type SteamId ¶
type SteamId uint64
SteamId is a steam identifier.
func (SteamId) ChatToClan ¶
used to fix the Chat SteamId to a Clan SteamId
func (SteamId) ClanToChat ¶
used to fix the Clan SteamId to a Chat SteamId
func (SteamId) GetAccountId ¶
func (SteamId) GetAccountInstance ¶
func (s SteamId) GetAccountInstance() AccountInstance
func (SteamId) GetAccountType ¶
func (SteamId) GetAccountUniverse ¶
func (SteamId) SetAccountId ¶
func (SteamId) SetAccountInstance ¶
func (SteamId) SetAccountType ¶
func (SteamId) SetAccountUniverse ¶
Click to show internal directories.
Click to hide internal directories.