API Reference › SteamAPI
CSteamID
StructNamespace: SwiftlyS2.Shared.SteamAPI · Assembly: SwiftlyS2.CS2.dll
[Serializable]
public struct CSteamID : IEquatable<CSteamID>, IComparable<CSteamID>View source
Constructors
public CSteamID(AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType)Parameters
- unAccountIDAccountID_t
- eUniverseEUniverse
- eAccountTypeEAccountType
public CSteamID(AccountID_t unAccountID, uint unAccountInstance, EUniverse eUniverse, EAccountType eAccountType)Parameters
- unAccountIDAccountID_t
- unAccountInstanceuint
- eUniverseEUniverse
- eAccountTypeEAccountType
Methods
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.
public void CreateBlankAnonLogon(EUniverse eUniverse)Parameters
- eUniverseEUniverse
public void CreateBlankAnonUserLogon(EUniverse eUniverse)Parameters
- eUniverseEUniverse
Indicates whether this instance and a specified object are equal.
public override bool Equals(object other)Parameters
- otherobject
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false .
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 the hash code for this instance.
public override int GetHashCode()public void InstancedSet(AccountID_t unAccountID, uint unInstance, EUniverse eUniverse, EAccountType eAccountType)Parameters
- unAccountIDAccountID_t
- unInstanceuint
- eUniverseEUniverse
- eAccountTypeEAccountType
public void Set(AccountID_t unAccountID, EUniverse eUniverse, EAccountType eAccountType)Parameters
- unAccountIDAccountID_t
- eUniverseEUniverse
- eAccountTypeEAccountType
public void SetEAccountType(EAccountType other)Parameters
- otherEAccountType
Returns the fully qualified type name of this instance.
public override string ToString()