Function
| Static Public Summary | ||
| public |
Returns true if the given number is an integer |
|
| public |
isIntersecting(rectOne: Object, rectTwo: Object): Boolean Returns true if the two rectangles do not overlap |
|
| public |
Parses a Tiled map JSON object and returns a processed map for client or server use |
|
| public |
requireItems(directory: String): Object Loads all JavaScript plugin files from the specified directory and returns a map of module paths |
|
Static Public
public isInt(n: Number): Boolean source
import {isInt} from 'WTF-Adventure/WTF-Adventure/client/utils/util.js'Returns true if the given number is an integer
Params:
| Name | Type | Attribute | Description |
| n | Number | the number to check |
public isIntersecting(rectOne: Object, rectTwo: Object): Boolean source
import {isIntersecting} from 'WTF-Adventure/WTF-Adventure/client/utils/util.js'Returns true if the two rectangles do not overlap
public parse(json: Object, options: Object): Object source
import parse from 'WTF-Adventure/WTF-Adventure/tools/map/processmap.js'Parses a Tiled map JSON object and returns a processed map for client or server use
public requireItems(directory: String): Object source
import requireItems from 'WTF-Adventure/WTF-Adventure/server/js/util/plugins.js'Loads all JavaScript plugin files from the specified directory and returns a map of module paths
Params:
| Name | Type | Attribute | Description |
| directory | String | the directory path to scan for plugin files |
Reference
Source
Test
