Drag[en]gine Script Module DragonScript 1.23
|
Service providing access to Steam SDK functionality if supported. More...
Classes | |
class | InitParameters |
Service initialization parameters. More... | |
Public Member Functions | |
void | addStatListener (ServiceStatsListener listener) |
void | dispose () |
Dispose of Steam SDK service. | |
void | getAuthToken (ServiceUserListener listener) |
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) |
ServiceSteam | new (InitParameters params) |
Create service ServiceSteamSdk. | |
void | removeStatsListener (ServiceStatsListener listener) |
void | removeUserListener (ServiceUserListener listener) |
void | requestResponse (Service service, UniqueID id, ServiceObject response, bool finished) |
Response received for request. | |
void | setStatsAndAchievements (Dictionary stats, Dictionary achievements, ServiceStatsListener listener) |
![]() | |
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 Steam SDK service is supported. | |
Public Attributes | |
BaseServiceConversions | pConversions |
Set | pGetStatsApiNames |
InitParameters | pInitParameters |
Dictionary | pOnceListeners |
Service | pService |
Set | pSetStatsApiNames |
SafeArray | pStatsListeners |
Static Public Attributes | |
static final String | authProviderId = "steam" |
Authentification provider identifier. | |
Service providing access to Steam SDK functionality if supported.
Provides access to these functionalities:
void Dragengine.Services.ServiceSteam.addStatListener | ( | ServiceStatsListener | listener | ) |
void Dragengine.Services.ServiceSteam.dispose | ( | ) |
Dispose of Steam SDK service.
void Dragengine.Services.ServiceSteam.getAuthToken | ( | ServiceUserListener | listener | ) |
BaseServiceConversions Dragengine.Services.ServiceSteam.getConversions | ( | ) |
Conversion helper.
void Dragengine.Services.ServiceSteam.getStatsAndAchievements | ( | Set | stats, |
Set | achievements, | ||
ServiceStatsListener | listener | ||
) |
ServiceUserFeatures Dragengine.Services.ServiceSteam.getUserFeatures | ( | ) |
void Dragengine.Services.ServiceSteam.getUserInfo | ( | ServiceUserListener | listener | ) |
void Dragengine.Services.ServiceSteam.getUserWalletBalance | ( | ServiceUserListener | listener | ) |
|
static |
Checks if Steam SDK service is supported.
Service is reported supported if the Steam SDK Service Module is present. Creating the service can still fail if Steam is not running.
void Dragengine.Services.ServiceSteam.loginUser | ( | ServiceUserCredentials | credentials, |
ServiceUserListener | listener | ||
) |
ServiceSteam Dragengine.Services.ServiceSteam.new | ( | InitParameters | params | ) |
Create service ServiceSteamSdk.
params | Init parameters. |
EInvalidParam | Steam service module is not present. |
EInvalidAction | Steam is not running. |
EInvalidAction | Steam SDK can not be initialized. |
void Dragengine.Services.ServiceSteam.removeStatsListener | ( | ServiceStatsListener | listener | ) |
void Dragengine.Services.ServiceSteam.removeUserListener | ( | ServiceUserListener | listener | ) |
void Dragengine.Services.ServiceSteam.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.
void Dragengine.Services.ServiceSteam.setStatsAndAchievements | ( | Dictionary | stats, |
Dictionary | achievements, | ||
ServiceStatsListener | listener | ||
) |
|
static |
Authentification provider identifier.
BaseServiceConversions Dragengine.Services.ServiceSteam.pConversions |
Set Dragengine.Services.ServiceSteam.pGetStatsApiNames |
InitParameters Dragengine.Services.ServiceSteam.pInitParameters |
Dictionary Dragengine.Services.ServiceSteam.pOnceListeners |
Service Dragengine.Services.ServiceSteam.pService |
Set Dragengine.Services.ServiceSteam.pSetStatsApiNames |
SafeArray Dragengine.Services.ServiceSteam.pStatsListeners |