Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
game/options/modifiers/GameplayModifier
GameplayModifierInstance
Class GameplayModifierInstance<ID, INSTANCE_ARGS, DATA>
Abstract
Type Parameters
ID
extends
number
INSTANCE_ARGS
extends
any
[]
=
[
]
DATA =
any
Hierarchy
Host
<
IGameplayModifierInstanceEvents
>
GameplayModifierInstance
ChallengeModifierInstance
IslandModifierInstance
MilestoneModifierInstance
Index
Constructors
constructor
Properties
args
event
id
options
random
Methods
add
Options
clear
Data
get
Data
get
Default
Title
get
Title
initialize?
set
Data
set
Options
set
Title
uninitialize?
Constructors
constructor
new
Gameplay
Modifier
Instance
<
ID
,
INSTANCE_ARGS
,
DATA
>
(
id
:
ID
, random
:
Random
<
IRandomGenerator
<
any
>
>
,
...
args
:
INSTANCE_ARGS
)
:
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Type Parameters
ID
extends
number
INSTANCE_ARGS
extends
any
[]
=
[
]
DATA =
any
Parameters
id:
ID
random:
Random
<
IRandomGenerator
<
any
>
>
Rest
...
args:
INSTANCE_ARGS
Returns
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Properties
Protected
Readonly
args
args
:
INSTANCE_ARGS
Readonly
event
event
:
IEventEmitter
<
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
,
IGameplayModifierInstanceEvents
>
Readonly
id
id
:
ID
options
options
:
IGameOptionsPartial
= {}
Readonly
random
random
:
Random
<
IRandomGenerator
<
any
>
>
Methods
add
Options
add
Options
(
options
:
IGameOptionsPartial
)
:
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Parameters
options:
IGameOptionsPartial
Returns
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
clear
Data
clear
Data
(
)
:
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Returns
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
get
Data
get
Data
(
)
:
undefined
|
DATA
Returns
undefined
|
DATA
Protected
Abstract
get
Default
Title
get
Default
Title
(
)
:
default
Returns
default
get
Title
get
Title
(
)
:
default
Returns
default
Optional
initialize
initialize
(
)
:
void
Returns
void
set
Data
set
Data
(
data
?:
DATA
)
:
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Parameters
Optional
data:
DATA
Returns
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
set
Options
set
Options
(
options
:
IGameOptionsPartial
)
:
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Parameters
options:
IGameOptionsPartial
Returns
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
set
Title
set
Title
(
initializer
:
(
(
defaultTitle
:
default
)
=>
default
)
)
:
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Parameters
initializer:
(
(
defaultTitle
:
default
)
=>
default
)
(
defaultTitle
:
default
)
:
default
Parameters
defaultTitle:
default
Returns
default
Returns
GameplayModifierInstance
<
ID
,
INSTANCE_ARGS
,
DATA
>
Optional
uninitialize
uninitialize
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
Gameplay
Modifier
Instance
constructor
args
event
id
options
random
add
Options
clear
Data
get
Data
get
Default
Title
get
Title
initialize?
set
Data
set
Options
set
Title
uninitialize?
Generated using
TypeDoc