Namespace: props

syngen.props

Provides a helper for instantiating, destroying, and updating all props each frame. Implementations are encouraged to use this for handling these tasks.

Source:

Methods

(static) create(prototype, optionsopt)

Instantiates a prop of prototype with options.

Parameters:
Name Type Attributes Description
prototype syngen.prop.base
options Object <optional>
Source:

(static) destroy()

Destroys the passed prop(s).

Parameters:
Name Type Attributes Description
...values syngen.prop.base <repeatable>
Source:

(static) get() → {Array.<syngen.prop.base>}

Returns all props.

Source:
Returns:
Type
Array.<syngen.prop.base>

(static) reset()

Destroys all props.

Source:
Listens to Events:

(static) update()

Updates all props.

Source:
Listens to Events: