EffectFactory()

new EffectFactory()

Properties:
Name Type Description
effects Map

Methods

add(id, config, state)

Parameters:
Name Type Description
id string
config EffectConfig
state GameState

create(id, confignullable, statenullable) → {Effect}

Parameters:
Name Type Attributes Description
id string

effect id

config object <nullable>

Effect.config override

state object <nullable>

Effect.state override

Returns:
Effect

get(id) → {object}

Get a effect definition. Use create if you want an instance of a effect

Parameters:
Name Type Description
id string
Returns:
object