Loom Engine - v3.1.1
GitHub
TheWorldTable.ai
Preparing search index...
EmotionState
Class EmotionState
Index
Methods
create
define
Emotion
has
Emotion
emotion
Ids
remove
Emotion
pulse
set
get
Value
get
has
remove
is
Above
is
Below
for
Character
dominant
list
entry
Count
emotion
Count
reset
Peaks
tick
clear
dispose
Methods
Static
create
create
(
opts
?:
EmotionStateOptions
)
:
EmotionState
Parameters
opts
:
EmotionStateOptions
= {}
Returns
EmotionState
define
Emotion
defineEmotion
(
spec
:
EmotionSpec
)
:
boolean
Parameters
spec
:
EmotionSpec
Returns
boolean
has
Emotion
hasEmotion
(
id
:
string
)
:
boolean
Parameters
id
:
string
Returns
boolean
emotion
Ids
emotionIds
()
:
string
[]
Returns
string
[]
remove
Emotion
removeEmotion
(
id
:
string
)
:
boolean
Parameters
id
:
string
Returns
boolean
pulse
pulse
(
characterId
:
string
,
emotionId
:
string
,
delta
:
number
)
:
number
|
null
Parameters
characterId
:
string
emotionId
:
string
delta
:
number
Returns
number
|
null
set
set
(
characterId
:
string
,
emotionId
:
string
,
value
:
number
)
:
boolean
Parameters
characterId
:
string
emotionId
:
string
value
:
number
Returns
boolean
get
Value
getValue
(
characterId
:
string
,
emotionId
:
string
)
:
number
Parameters
characterId
:
string
emotionId
:
string
Returns
number
get
get
(
characterId
:
string
,
emotionId
:
string
)
:
EmotionEntry
|
null
Parameters
characterId
:
string
emotionId
:
string
Returns
EmotionEntry
|
null
has
has
(
characterId
:
string
,
emotionId
:
string
)
:
boolean
Parameters
characterId
:
string
emotionId
:
string
Returns
boolean
remove
remove
(
characterId
:
string
,
emotionId
:
string
)
:
boolean
Parameters
characterId
:
string
emotionId
:
string
Returns
boolean
is
Above
isAbove
(
characterId
:
string
,
emotionId
:
string
,
threshold
:
number
)
:
boolean
Parameters
characterId
:
string
emotionId
:
string
threshold
:
number
Returns
boolean
is
Below
isBelow
(
characterId
:
string
,
emotionId
:
string
,
threshold
:
number
)
:
boolean
Parameters
characterId
:
string
emotionId
:
string
threshold
:
number
Returns
boolean
for
Character
forCharacter
(
characterId
:
string
)
:
EmotionEntry
[]
Parameters
characterId
:
string
Returns
EmotionEntry
[]
dominant
dominant
(
characterId
:
string
)
:
EmotionEntry
|
null
Parameters
characterId
:
string
Returns
EmotionEntry
|
null
list
list
()
:
EmotionEntry
[]
Returns
EmotionEntry
[]
entry
Count
entryCount
()
:
number
Returns
number
emotion
Count
emotionCount
()
:
number
Returns
number
reset
Peaks
resetPeaks
(
characterId
?:
string
)
:
void
Parameters
Optional
characterId
:
string
Returns
void
tick
tick
(
dtMs
:
number
)
:
void
Parameters
dtMs
:
number
Returns
void
clear
clear
()
:
void
Returns
void
dispose
dispose
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
define
Emotion
has
Emotion
emotion
Ids
remove
Emotion
pulse
set
get
Value
get
has
remove
is
Above
is
Below
for
Character
dominant
list
entry
Count
emotion
Count
reset
Peaks
tick
clear
dispose
GitHub
TheWorldTable.ai
Loom Engine - v3.1.1
Loading...