Drag[en]gine Script Module DragonScript
1.23
|
Default implementation of ServiceModsListener. More...
Public Member Functions | |
DefaultServiceModsListener | new () |
Create new instance of DefaultServiceModsListener. More... | |
void | onGetModInfo (ServiceMods service, String modId, ServiceModInfo info, Exception exception) |
Retrieve modification information finished. More... | |
void | onGetPurchasedMods (ServiceMods service, Array mods, Exception exception) |
Get purchased mods finished. More... | |
void | onGetTags (ServiceMods service, Array categories, Exception exception) |
Retrieve tags finished. More... | |
void | onListMods (ServiceMods service, Array mods, Exception exception) |
Listing modifications finished. More... | |
void | onLoadModResource (ServiceMods service, String url, Object resource, Exception exception) |
Loading resource finished. More... | |
void | onModManagement (ServiceMods service, ServiceMods.ManagementEvent event, String modId, ServiceModProgress progress, Exception exception) |
Mod mamagement event. More... | |
void | onPurchaseMod (ServiceMods service, String modId, String price, String walletBalance, Exception exception) |
Purchase mod finished. More... | |
void | onReportMod (ServiceMods service, String modId, Exception exception) |
Report modification finished. More... | |
void | onRevokeModRating (ServiceMods service, String modId, Exception exception) |
Revoke modification rating finished. More... | |
void | onSetModDisabled (ServiceMods service, String modId, bool disabled, Exception exception) |
Set modification disabled finished. More... | |
void | onSubmitModRating (ServiceMods service, String modId, Exception exception) |
Submit modification rating finished. More... | |
void | onSubscribeMod (ServiceMods service, String modId, Exception exception) |
Subscribe modification finished. More... | |
void | onUnsubscribeMod (ServiceMods service, String modId, Exception exception) |
Unsubscribe modification finished. More... | |
Default implementation of ServiceModsListener.
DefaultServiceModsListener Dragengine.Services.Mods.DefaultServiceModsListener.new | ( | ) |
Create new instance of DefaultServiceModsListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onGetModInfo | ( | ServiceMods | service, |
String | modId, | ||
ServiceModInfo | info, | ||
Exception | exception | ||
) |
Retrieve modification information finished.
service | Service sending the event. |
modId | Identifier of modification. |
info | Modification info. On failure null. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onGetPurchasedMods | ( | ServiceMods | service, |
Array | mods, | ||
Exception | exception | ||
) |
Get purchased mods finished.
service | Service sending the event. |
mods | Array of ServiceModInfo. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onGetTags | ( | ServiceMods | service, |
Array | categories, | ||
Exception | exception | ||
) |
Retrieve tags finished.
service | Service sending the event. |
categories | Array of ServiceModTagCategory. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onListMods | ( | ServiceMods | service, |
Array | mods, | ||
Exception | exception | ||
) |
Listing modifications finished.
service | Service sending the event. |
mods | Array containing ServiceModInfo. On failure null. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.SearchModsListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onLoadModResource | ( | ServiceMods | service, |
String | url, | ||
Object | resource, | ||
Exception | exception | ||
) |
Loading resource finished.
service | Service sending the event. |
url | URL of resource to load. |
resource | Loaded resource. On failure null. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMTransferListRenderer.ModWidget.LoadLogoListener, Dragengine.Gui.ModManagement.MMModificationListRenderer.ModWidget.LoadLogoListener, and Dragengine.Gui.ModManagement.MMImageGalleryPreviewImage.LoadImageListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onModManagement | ( | ServiceMods | service, |
ServiceMods.ManagementEvent | event, | ||
String | modId, | ||
ServiceModProgress | progress, | ||
Exception | exception | ||
) |
Mod mamagement event.
service | Service sending the event. |
event | Management event. |
modId | Identifier of modification affected by the event. |
progress | Progress information or null. |
exception | Exception or null if sueeded. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onPurchaseMod | ( | ServiceMods | service, |
String | modId, | ||
String | price, | ||
String | walletBalance, | ||
Exception | exception | ||
) |
Purchase mod finished.
service | Service sending the event. |
modId | Identifier of modification the user purchased. |
price | Price paid for the modification. |
walletBalance | Wallet balance after purchase. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onReportMod | ( | ServiceMods | service, |
String | modId, | ||
Exception | exception | ||
) |
Report modification finished.
service | Service sending the event. |
modId | Identifier of modification the report has been submitted for. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onRevokeModRating | ( | ServiceMods | service, |
String | modId, | ||
Exception | exception | ||
) |
Revoke modification rating finished.
service | Service sending the event. |
modId | Identifier of modification the rating has been revoked for. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onSetModDisabled | ( | ServiceMods | service, |
String | modId, | ||
bool | disabled, | ||
Exception | exception | ||
) |
Set modification disabled finished.
service | Service sending the event. |
modId | Identifier of modification. |
disabled | Disabled state of modification. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onSubmitModRating | ( | ServiceMods | service, |
String | modId, | ||
Exception | exception | ||
) |
Submit modification rating finished.
service | Service sending the event. |
modId | Identifier of modification the rating has been submitted for. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onSubscribeMod | ( | ServiceMods | service, |
String | modId, | ||
Exception | exception | ||
) |
Subscribe modification finished.
service | Service sending the event. |
modId | Identifier of modification. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.
void Dragengine.Services.Mods.DefaultServiceModsListener.onUnsubscribeMod | ( | ServiceMods | service, |
String | modId, | ||
Exception | exception | ||
) |
Unsubscribe modification finished.
service | Service sending the event. |
modId | Identifier of modification. |
exception | On success null. On failure contains error information. |
Implements Dragengine.Services.Mods.ServiceModsListener.
Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.