Class: Utils

Utils()

new Utils()

The static class that defines utility methods.
Properties:
Name Type Description
RPGMAKER_NAME String [static] The name of the RPG Maker. 'MV' in the current version.
RPGMAKER_VERSION String [static] The version of the RPG Maker.

Methods

(static) canReadGameFiles() → {Boolean}

Checks whether the browser can read files in the game folder.
Returns:
True if the browser can read files in the game folder
Type
Boolean

(static) generateRuntimeId() → {Number}

Returns:
Type
Number

(static) isAndroidChrome() → {Boolean}

Checks whether the browser is Android Chrome.
Returns:
True if the browser is Android Chrome
Type
Boolean

(static) isMobileDevice() → {Boolean}

Checks whether the platform is a mobile device.
Returns:
True if the platform is a mobile device
Type
Boolean

(static) isMobileSafari() → {Boolean}

Checks whether the browser is Mobile Safari.
Returns:
True if the browser is Mobile Safari
Type
Boolean

(static) isNwjs() → {Boolean}

Checks whether the platform is NW.js.
Returns:
True if the platform is NW.js
Type
Boolean

(static) isOptionValid(name) → {Boolean}

Checks whether the option is in the query string.
Parameters:
Name Type Description
name String The option name
Returns:
True if the option is in the query string
Type
Boolean

(static) isSupportPassiveEvent() → {Boolean}

Test this browser support passive event feature
Returns:
this browser support passive event or not
Type
Boolean

(static) rgbToCssColor(r, g, b) → {String}

Makes a CSS color string from RGB values.
Parameters:
Name Type Description
r Number The red value in the range (0, 255)
g Number The green value in the range (0, 255)
b Number The blue value in the range (0, 255)
Returns:
CSS color string
Type
String