Drag[en]gine Script Module DragonScript 1.23
|
Service providing access to Mod.io functionality if supported. More...
Classes | |
class | InitParameters |
Service initialization parameters. More... | |
enum | Portal |
Store portal for use with ServiceModio. More... | |
Public Member Functions | |
void | activateMods () |
void | addModsListener (ServiceModsListener listener) |
void | addUserListener (ServiceUserListener listener) |
void | dispose () |
Dispose of ModIO service. | |
Dictionary | getActiveMods () |
void | getAuthToken (ServiceUserListener listener) |
BaseServiceConversions | getConversions () |
Conversion helper. | |
ServiceModProgress | getCurrentModUpdate () |
void | getModInfo (String id, ServiceModsListener listener) |
ServiceModsFeatures | getModsFeatures () |
bool | getPauseModManagement () |
Dictionary | getSubscribedMods () |
Dictionary | getSystemMods () |
ServiceUserFeatures | getUserFeatures () |
void | getUserInfo (ServiceUserListener listener) |
void | getUserWalletBalance (ServiceUserListener listener) |
Boolean | isInitialized () |
Determines if service is initialized and ready to be used. | |
bool | isModManagementBusy () |
bool | isUserLoggedIn () |
void | listAllMods (ServiceModFilter filter, ServiceModsListener listener) |
void | loadModResource (String url, ServiceModsListener listener) |
void | loginUser (ServiceUserCredentials credentials, ServiceUserListener listener) |
ServiceModio | new (InitParameters params, ServiceInitListener listener) |
Create service ServiceModIO. | |
void | purchaseMod (String id, String price, ServiceModsListener listener) |
void | removeModsListener (ServiceModsListener listener) |
void | removeUserListener (ServiceUserListener listener) |
void | reportMod (String id, ServiceModReport report, ServiceModsListener listener) |
void | requestResponse (Service service, UniqueID id, ServiceObject response, bool finished) |
Response received for request. | |
void | revokeModRating (String id, ServiceModsListener listener) |
void | setModDisabled (String id, bool disabled, ServiceModsListener listener) |
void | setPauseModManagement (bool pause) |
void | submitModRating (String id, int rating, ServiceModsListener listener) |
void | subscribeMod (String id, ServiceModsListener listener) |
void | unsubscribeMod (String id, ServiceModsListener 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 ModIO service is supported. | |
Public Attributes | |
BaseServiceConversions | pConversions |
ServiceInitListener | pInitListener |
InitParameters | pInitParameters |
Boolean | pIsInitialized |
bool | pIsManagementBusy |
SafeArray | pModsListeners |
Dictionary | pOnceListeners |
bool | pPauseManagement |
Portal | pPortal |
Service | pService |
Service providing access to Mod.io functionality if supported.
Provides access to these functionalities:
void Dragengine.Services.ServiceModio.activateMods | ( | ) |
void Dragengine.Services.ServiceModio.addModsListener | ( | ServiceModsListener | listener | ) |
void Dragengine.Services.ServiceModio.addUserListener | ( | ServiceUserListener | listener | ) |
void Dragengine.Services.ServiceModio.dispose | ( | ) |
Dispose of ModIO service.
Dictionary Dragengine.Services.ServiceModio.getActiveMods | ( | ) |
void Dragengine.Services.ServiceModio.getAuthToken | ( | ServiceUserListener | listener | ) |
BaseServiceConversions Dragengine.Services.ServiceModio.getConversions | ( | ) |
Conversion helper.
ServiceModProgress Dragengine.Services.ServiceModio.getCurrentModUpdate | ( | ) |
void Dragengine.Services.ServiceModio.getModInfo | ( | String | id, |
ServiceModsListener | listener | ||
) |
ServiceModsFeatures Dragengine.Services.ServiceModio.getModsFeatures | ( | ) |
bool Dragengine.Services.ServiceModio.getPauseModManagement | ( | ) |
Dictionary Dragengine.Services.ServiceModio.getSubscribedMods | ( | ) |
Dictionary Dragengine.Services.ServiceModio.getSystemMods | ( | ) |
ServiceUserFeatures Dragengine.Services.ServiceModio.getUserFeatures | ( | ) |
void Dragengine.Services.ServiceModio.getUserInfo | ( | ServiceUserListener | listener | ) |
void Dragengine.Services.ServiceModio.getUserWalletBalance | ( | ServiceUserListener | listener | ) |
Boolean Dragengine.Services.ServiceModio.isInitialized | ( | ) |
Determines if service is initialized and ready to be used.
If null is returned the service is still initializing. If returned object has true value the service is initialized and ready to be used. If returned object has false value the service failed to initialized and has to be disposed.
bool Dragengine.Services.ServiceModio.isModManagementBusy | ( | ) |
|
static |
Checks if ModIO service is supported.
Service is reported supported if the ModIO Service Module is present. Creating the service can still fail.
bool Dragengine.Services.ServiceModio.isUserLoggedIn | ( | ) |
void Dragengine.Services.ServiceModio.listAllMods | ( | ServiceModFilter | filter, |
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.loadModResource | ( | String | url, |
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.loginUser | ( | ServiceUserCredentials | credentials, |
ServiceUserListener | listener | ||
) |
ServiceModio Dragengine.Services.ServiceModio.new | ( | InitParameters | params, |
ServiceInitListener | listener | ||
) |
Create service ServiceModIO.
The service is asynchronously initialized. Once initialization finished the provided listener is called with success or failure outcome. If the outcome is success the service can be used. If the outcome is failure the service can not be used and should be disposed.
params | Init parameters. |
listener | Listener called if initialization finished. Can be null. |
EInvalidParam | ModIO service module is not present. |
EInvalidParam | One or more of the provided parameters is not valid. |
void Dragengine.Services.ServiceModio.purchaseMod | ( | String | id, |
String | price, | ||
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.removeModsListener | ( | ServiceModsListener | listener | ) |
void Dragengine.Services.ServiceModio.removeUserListener | ( | ServiceUserListener | listener | ) |
void Dragengine.Services.ServiceModio.reportMod | ( | String | id, |
ServiceModReport | report, | ||
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.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.ServiceModio.revokeModRating | ( | String | id, |
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.setModDisabled | ( | String | id, |
bool | disabled, | ||
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.setPauseModManagement | ( | bool | pause | ) |
void Dragengine.Services.ServiceModio.submitModRating | ( | String | id, |
int | rating, | ||
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.subscribeMod | ( | String | id, |
ServiceModsListener | listener | ||
) |
void Dragengine.Services.ServiceModio.unsubscribeMod | ( | String | id, |
ServiceModsListener | listener | ||
) |
BaseServiceConversions Dragengine.Services.ServiceModio.pConversions |
ServiceInitListener Dragengine.Services.ServiceModio.pInitListener |
InitParameters Dragengine.Services.ServiceModio.pInitParameters |
Boolean Dragengine.Services.ServiceModio.pIsInitialized |
bool Dragengine.Services.ServiceModio.pIsManagementBusy |
SafeArray Dragengine.Services.ServiceModio.pModsListeners |
Dictionary Dragengine.Services.ServiceModio.pOnceListeners |
bool Dragengine.Services.ServiceModio.pPauseManagement |
Portal Dragengine.Services.ServiceModio.pPortal |
Service Dragengine.Services.ServiceModio.pService |