Reference Source Test

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

parse(json: Object, options: Object): Object

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

Returns true if the given number is an integer

Params:

NameTypeAttributeDescription
n Number

the number to check

Return:

Boolean

public isIntersecting(rectOne: Object, rectTwo: Object): Boolean source

Returns true if the two rectangles do not overlap

Params:

NameTypeAttributeDescription
rectOne Object

the first rectangle with left, right, top, and bottom properties

rectTwo Object

the second rectangle with left, right, top, and bottom properties

Return:

Boolean

public parse(json: Object, options: Object): Object source

Parses a Tiled map JSON object and returns a processed map for client or server use

Params:

NameTypeAttributeDescription
json Object

the raw Tiled map JSON data

options Object

the processing options including the mode ('client' or 'server')

Return:

Object

public requireItems(directory: String): Object source

Loads all JavaScript plugin files from the specified directory and returns a map of module paths

Params:

NameTypeAttributeDescription
directory String

the directory path to scan for plugin files

Return:

Object