Drag[en]gine Script Module DragonScript 1.23
|
Service providing access to Microsoft GDK functionality if supported. More...
Classes | |
class | InitParameters |
Service initialization parameters. More... | |
Public Member Functions | |
void | addStatListener (ServiceStatsListener listener) |
void | dispose () |
Dispose of Microsoft GDK service. | |
BaseServiceConversions | getConversions () |
Conversion helper. | |
void | getStatsAndAchievements (Set stats, Set achievements, ServiceStatsListener listener) |
ServiceUserFeatures | getUserFeatures () |
void | getUserInfo (ServiceUserListener listener) |
void | getUserWalletBalance (ServiceUserListener listener) |
void | loginUser (ServiceUserCredentials credentials, ServiceUserListener listener) |
void | logoutUser (ServiceUserListener listener) |
ServiceMsgdk | new (InitParameters params) |
Create service ServiceMsgdk. | |
void | removeStatsListener (ServiceStatsListener listener) |
void | requestResponse (Service service, UniqueID id, ServiceObject response, bool finished) |
Response received for request. | |
![]() | |
void | eventReceived (Service service, ServiceObject event) |
Service event received for example notifications. | |
void | requestFailed (Service service, UniqueID id, ServiceObject error) |
Request failed. | |
Static Public Member Functions | |
static bool | isServiceSupported () |
Checks if Microsoft GDK service is supported. | |
Public Attributes | |
BaseServiceConversions | pConversions |
InitParameters | pInitParameters |
Dictionary | pOnceListeners |
Service | pService |
SafeArray | pStatsListeners |
Static Public Attributes | |
static final String | authProviderId = "xboxLive" |
Authentification provider identifier. | |
Service providing access to Microsoft GDK functionality if supported.
Provides access to these functionalities:
void Dragengine.Services.ServiceMsgdk.addStatListener | ( | ServiceStatsListener | listener | ) |
void Dragengine.Services.ServiceMsgdk.dispose | ( | ) |
Dispose of Microsoft GDK service.
BaseServiceConversions Dragengine.Services.ServiceMsgdk.getConversions | ( | ) |
Conversion helper.
void Dragengine.Services.ServiceMsgdk.getStatsAndAchievements | ( | Set | stats, |
Set | achievements, | ||
ServiceStatsListener | listener | ||
) |
ServiceUserFeatures Dragengine.Services.ServiceMsgdk.getUserFeatures | ( | ) |
void Dragengine.Services.ServiceMsgdk.getUserInfo | ( | ServiceUserListener | listener | ) |
void Dragengine.Services.ServiceMsgdk.getUserWalletBalance | ( | ServiceUserListener | listener | ) |
|
static |
Checks if Microsoft GDK service is supported.
Service is reported supported if the Microsoft GDK Service Module is present. Creating the service can still fail if Microsoft GDK can not be initialized.
void Dragengine.Services.ServiceMsgdk.loginUser | ( | ServiceUserCredentials | credentials, |
ServiceUserListener | listener | ||
) |
void Dragengine.Services.ServiceMsgdk.logoutUser | ( | ServiceUserListener | listener | ) |
ServiceMsgdk Dragengine.Services.ServiceMsgdk.new | ( | InitParameters | params | ) |
Create service ServiceMsgdk.
params | Init parameters. |
EInvalidParam | Microsoft GDK service module is not present. |
EInvalidAction | Microsoft GDK can not be initialized. |
void Dragengine.Services.ServiceMsgdk.removeStatsListener | ( | ServiceStatsListener | listener | ) |
void Dragengine.Services.ServiceMsgdk.requestResponse | ( | Service | service, |
UniqueID | id, | ||
ServiceObject | response, | ||
bool | finished | ||
) |
Response received for request.
service | Service receiving the response. |
id | Identifier of request this response belongs to. |
response | Response data. |
finished | True if the request finished or false if more responses will be received. |
Implements Dragengine.ServiceListener.
|
static |
Authentification provider identifier.
BaseServiceConversions Dragengine.Services.ServiceMsgdk.pConversions |
InitParameters Dragengine.Services.ServiceMsgdk.pInitParameters |
Dictionary Dragengine.Services.ServiceMsgdk.pOnceListeners |
Service Dragengine.Services.ServiceMsgdk.pService |
SafeArray Dragengine.Services.ServiceMsgdk.pStatsListeners |