GOG GALAXY SDK Documentation
|
Represents the ID of an entity used by Galaxy Peer. More...
#include <GalaxyID.h>
Public Types | |
enum | IDType { ID_TYPE_UNASSIGNED , ID_TYPE_LOBBY , ID_TYPE_USER } |
The type of the ID. | |
Public Member Functions | |
GalaxyID (void) | |
Default constructor. More... | |
GalaxyID (uint64_t _value) | |
Creates an instance of GalaxyID of a specified value. More... | |
GalaxyID (const GalaxyID &galaxyID) | |
Copy constructor. More... | |
GalaxyID & | operator= (const GalaxyID &other) |
The assignment operator. More... | |
bool | operator< (const GalaxyID &other) const |
The lower operator. More... | |
bool | operator== (const GalaxyID &other) const |
The equality operator. More... | |
bool | operator!= (const GalaxyID &other) const |
The inequality operator. More... | |
bool | IsValid () const |
Checks if the ID is valid and is assigned to an entity. More... | |
uint64_t | ToUint64 () const |
Returns the numerical value of the ID. More... | |
uint64_t | GetRealID () const |
Returns the numerical value of the real ID, without any extra flags. More... | |
IDType | GetIDType () const |
Returns the type of the ID. More... | |
Static Public Member Functions | |
static GalaxyID | FromRealID (IDType type, uint64_t value) |
Creates GalaxyID from real ID and type. More... | |
Static Public Attributes | |
static const uint64_t | UNASSIGNED_VALUE = 0 |
The numerical value used when the instance of GalaxyID is not valid. | |
Represents the ID of an entity used by Galaxy Peer.
This can be the ID of either a lobby or a Galaxy user.
|
inline |
Default constructor.
Creates an instance of GalaxyID that is invalid and of unknown kind.
|
inline |
Creates an instance of GalaxyID of a specified value.
[in] | _value | The numerical value of the ID. |
|
inline |
Returns the type of the ID.
|
inline |
Returns the numerical value of the real ID, without any extra flags.
|
inline |
Checks if the ID is valid and is assigned to an entity.
|
inline |
The inequality operator.
The opposite to the equality operator.
[in] | other | Another instance of GalaxyID to compare to. |
|
inline |
The assignment operator.
Makes the ID equal to another ID.
[in] | other | The instance of GalaxyID to copy from. |
|
inline |
|
inline |
Returns the numerical value of the ID.