Drag[en]gine Script Module DragonScript  1.23
Dragengine.Services.Mods.ServiceModsFeatures Class Reference

Features supported by a ServiceMods instance. More...

Inheritance diagram for Dragengine.Services.Mods.ServiceModsFeatures:

Public Member Functions

ServiceModsFeatures new ()
 Create new instance of class ServiceModsFeatures. More...
 

Public Attributes

bool canRateMods
 User can submit and revoke ratings for modifications. More...
 
bool canReportMods
 Reporting modifications is supported. More...
 
String currency
 Monetization currency name. More...
 
bool hasMarketplace
 Monetization is supported using marketplace or store functionality. More...
 
int modRatingCount
 Count of rating types. More...
 
String name
 Display name for example for use in UI elements. More...
 

Detailed Description

Features supported by a ServiceMods instance.

Version
1.23

Member Function Documentation

◆ new()

ServiceModsFeatures Dragengine.Services.Mods.ServiceModsFeatures.new ( )

Create new instance of class ServiceModsFeatures.

Member Data Documentation

◆ canRateMods

bool Dragengine.Services.Mods.ServiceModsFeatures.canRateMods

User can submit and revoke ratings for modifications.

If false and modRatingCount is not 0 ratings will be shown but the user is not able to submit or revoke ratings.

◆ canReportMods

bool Dragengine.Services.Mods.ServiceModsFeatures.canReportMods

Reporting modifications is supported.

◆ currency

String Dragengine.Services.Mods.ServiceModsFeatures.currency

Monetization currency name.

If hasMarketplace is true contains the currency name which can be a real currency code or a virtual currency name.

◆ hasMarketplace

bool Dragengine.Services.Mods.ServiceModsFeatures.hasMarketplace

Monetization is supported using marketplace or store functionality.

If true paid modifications can be purchased by the used.

◆ modRatingCount

int Dragengine.Services.Mods.ServiceModsFeatures.modRatingCount

Count of rating types.

Mod rating ranges from 0 to modRatingCount inclusive. The UI widget is choosen to represent ratings.

For a rating count of 2 a thumbs up/down type widget is used to represent 'positive' and 'negative' ratings.

For a rating count of 3 a thumbs up/down/neutral type widget is used to represent 'positive', 'negative' and 'neutral' ratings.

For a rating count greater than 3 either a star or bar type widget is used. The count of shown stars is one less than the rating count. Hence a rating count of 5 shows 4 stars which can be all disabled which is the rating 0.

With a rating count of 0 the service does not support rating modifications.

◆ name

String Dragengine.Services.Mods.ServiceModsFeatures.name

Display name for example for use in UI elements.


The documentation for this class was generated from the following file: