swiftlys2/docs/api/releases/features/ai/
API Reference › SteamAPI

CSteamID

Struct
Namespace: SwiftlyS2.Shared.SteamAPI · Assembly: SwiftlyS2.CS2.dll
[Serializable]
public struct CSteamID : IEquatable<CSteamID>, IComparable<CSteamID>
View source

Constructors

CSteamID(AccountID_t, EUniverse, EAccountType)

public CSteamID(AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType)
Parameters

CSteamID(AccountID_t, uint, EUniverse, EAccountType)

public CSteamID(AccountID_t unAccountID, uint unAccountInstance, EUniverse eUniverse, EAccountType eAccountType)
Parameters

CSteamID(ulong)

public CSteamID(ulong ulSteamID)
Parameters

CSteamID(string)

public CSteamID(string sSteamID)
Parameters

Methods

BAnonAccount()

Is this an anonymous account?

public bool BAnonAccount()
Returns

BAnonGameServerAccount()

Is this an anonymous game server account id?

public bool BAnonGameServerAccount()
Returns

BAnonUserAccount()

Is this an anonymous user account? ( used to create an account or reset a password )

public bool BAnonUserAccount()
Returns

BBlankAnonAccount()

Is this an anonymous game server login that will be filled in?

public bool BBlankAnonAccount()
Returns

BChatAccount()

Is this a chat account id?

public bool BChatAccount()
Returns

BClanAccount()

Is this a clan account id?

public bool BClanAccount()
Returns

BConsoleUserAccount()

Is this a faked up Steam ID for a PSN friend account?

public bool BConsoleUserAccount()
Returns

BContentServerAccount()

Is this a content server account id?

public bool BContentServerAccount()
Returns

BGameServerAccount()

Is this a game server account id? (Either persistent or anonymous)

public bool BGameServerAccount()
Returns

BIndividualAccount()

Is this an individual user account id?

public bool BIndividualAccount()
Returns

BPersistentGameServerAccount()

Is this a persistent (not anonymous) game server account id?

public bool BPersistentGameServerAccount()
Returns

Clear()

public void Clear()

CompareTo(CSteamID)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(CSteamID other)
Parameters
  • otherCSteamIDAn object to compare with this instance.
Returns
A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes other in the sort order. Zero This instance occurs in the same position in the sort order as other . Greater than zero This instance follows other in the sort order.

CreateBlankAnonLogon(EUniverse)

public void CreateBlankAnonLogon(EUniverse eUniverse)
Parameters

CreateBlankAnonUserLogon(EUniverse)

public void CreateBlankAnonUserLogon(EUniverse eUniverse)
Parameters

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? other)
Parameters
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false .

Equals(CSteamID)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CSteamID other)
Parameters
  • otherCSteamIDAn object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false .

GetAccountID()

public AccountID_t GetAccountID()

GetEAccountType()

public EAccountType GetEAccountType()

GetEUniverse()

public EUniverse GetEUniverse()
Returns

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()
Returns
A 32-bit signed integer that is the hash code for this instance.

GetSteamID()

public string? GetSteamID()
Returns

GetSteamID3()

public string? GetSteamID3()
Returns

GetSteamID32()

public uint GetSteamID32()
Returns

GetSteamID64()

public ulong GetSteamID64()
Returns

GetSteamIDOnline()

public string? GetSteamIDOnline()
Returns

GetUnAccountInstance()

public uint GetUnAccountInstance()
Returns

InstancedSet(AccountID_t, uint, EUniverse, EAccountType)

public void InstancedSet(AccountID_t unAccountID, uint unInstance, EUniverse eUniverse, EAccountType eAccountType)
Parameters

IsLobby()

Is this a chat account id?

public bool IsLobby()
Returns

IsValid()

public bool IsValid()
Returns

Set(AccountID_t, EUniverse, EAccountType)

public void Set(AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType)
Parameters

SetAccountID(AccountID_t)

public void SetAccountID(AccountID_t other)
Parameters

SetAccountInstance(uint)

public void SetAccountInstance(uint other)
Parameters

SetEAccountType(EAccountType)

This is a non standard/custom function not found in C++ Steamworks

public void SetEAccountType(EAccountType other)
Parameters

SetEUniverse(EUniverse)

public void SetEUniverse(EUniverse other)
Parameters

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()
Returns
The fully qualified type name.

Fields

LanModeGS

public static readonly CSteamID LanModeGS
Field Value

Nil

public static readonly CSteamID Nil
Field Value

NonSteamGS

public static readonly CSteamID NonSteamGS
Field Value

NotInitYetGS

public static readonly CSteamID NotInitYetGS
Field Value

OutofDateGS

public static readonly CSteamID OutofDateGS
Field Value

m_SteamID

public ulong m_SteamID
Field Value

Operators

operator ==(CSteamID, CSteamID)

public static bool operator ==(CSteamID x, CSteamID y)
Parameters
Returns

explicit operator CSteamID(ulong)

public static explicit operator CSteamID(ulong value)
Parameters
Returns

explicit operator ulong(CSteamID)

public static explicit operator ulong(CSteamID that)
Parameters
Returns

operator !=(CSteamID, CSteamID)

public static bool operator !=(CSteamID x, CSteamID y)
Parameters
Returns