swiftlys2/docs/api/ai/
API Reference SteamAPI

CGameID

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

Constructors

CGameID(ulong)

public CGameID(ulong GameID)
Parameters

CGameID(AppId_t)

public CGameID(AppId_t nAppID)
Parameters

CGameID(AppId_t, uint)

public CGameID(AppId_t nAppID, uint nModID)
Parameters

Methods

AppID()

public AppId_t AppID()
Returns

CompareTo(CGameID)

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(CGameID other)
Parameters
  • otherCGameIDAn 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.

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(CGameID)

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

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

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.

IsMod()

public bool IsMod()
Returns

IsP2PFile()

public bool IsP2PFile()
Returns

IsShortcut()

public bool IsShortcut()
Returns

IsSteamApp()

public bool IsSteamApp()
Returns

IsValid()

public bool IsValid()
Returns

ModID()

public uint ModID()
Returns

Reset()

public void Reset()

Set(ulong)

public void Set(ulong GameID)
Parameters

ToString()

Returns the fully qualified type name of this instance.

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

Type()

public CGameID.EGameIDType Type()

Fields

m_GameID

public ulong m_GameID
Field Value

Operators

operator ==(CGameID, CGameID)

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

explicit operator CGameID(ulong)

public static explicit operator CGameID(ulong value)
Parameters
Returns

explicit operator ulong(CGameID)

public static explicit operator ulong(CGameID that)
Parameters
Returns

operator !=(CGameID, CGameID)

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