public class GameID
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GameID.GameType
Represents various types of games.
|
| Constructor and Description |
|---|
GameID()
Initializes a new instance of the
GameID class. |
GameID(int nAppId)
Initializes a new instance of the
GameID class. |
GameID(int nAppId,
java.lang.String modPath)
Initializes a new instance of the
GameID class. |
GameID(long id)
Initializes a new instance of the
GameID class. |
GameID(java.lang.String exePath,
java.lang.String appName)
Initializes a new instance of the
GameID class. |
| Modifier and Type | Method and Description |
|---|---|
long |
convertToUInt64()
Converts this GameID into it's 64bit integer form.
|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
Object is equal to this instance. |
int |
getAppID()
Gets the app id.
|
GameID.GameType |
getAppType()
Gets the type of the app.
|
long |
getModID()
Gets the mod id.
|
int |
hashCode()
Returns a hash code for this instance.
|
boolean |
isMod()
Gets a value indicating whether this instance is a mod.
|
boolean |
isP2PFile()
Gets a value indicating whether this instance is a peer-to-peer file.
|
boolean |
isShortcut()
Gets a value indicating whether this instance is a shortcut.
|
boolean |
isSteamApp()
Gets a value indicating whether this instance is a steam app.
|
void |
set(long gameId)
Sets the various components of this GameID from a 64bit integer form.
|
void |
setAppID(int value)
Sets the app id.
|
void |
setAppType(GameID.GameType value)
Sets the type of the app.
|
void |
setFromUInt64(long longSteamId)
Sets the various components of this GameID from a 64bit integer form.
|
void |
setModID(long value)
Sets the mod id.
|
java.lang.String |
toString()
Returns a
String that represents this instance. |
long |
toUInt64()
Converts this GameID into it's 64bit integer form.
|
public GameID()
GameID class.public GameID(long id)
GameID class.id - The 64bit integer to assign this GameID from.public GameID(int nAppId)
GameID class.nAppId - The 32bit app id to assign this GameID from.public GameID(int nAppId,
java.lang.String modPath)
GameID class.nAppId - The base app id of the mod.modPath - The game folder name of the mod.public GameID(java.lang.String exePath,
java.lang.String appName)
GameID class.exePath - The path to the executable, usually quoted.appName - The name of the application shortcut.public void set(long gameId)
gameId - The 64bit integer to assign this GameID from.public long toUInt64()
public void setAppID(int value)
value - The app ID.public int getAppID()
public void setAppType(GameID.GameType value)
value - The type of the app.public GameID.GameType getAppType()
public void setModID(long value)
value - The mod ID.public long getModID()
public boolean isMod()
public boolean isShortcut()
public boolean isP2PFile()
public boolean isSteamApp()
public void setFromUInt64(long longSteamId)
longSteamId - The 64bit integer to assign this GameID from.public long convertToUInt64()
public boolean equals(java.lang.Object obj)
Object is equal to this instance.equals in class java.lang.Objectobj - The Object to compare with this instance.Object is equal to this instance; otherwise, false.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
String that represents this instance.toString in class java.lang.ObjectString that represents this instance.