Class: CubismParallelMotionManager
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6179
Extends
ParallelMotionManager<CubismMotion,CubismSpec.Motion>
Constructors
Constructor
> new CubismParallelMotionManager(parent): CubismParallelMotionManager
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6182
Parameters
parent
Returns
CubismParallelMotionManager
Overrides
ParallelMotionManager<CubismMotion, CubismSpec.Motion>.constructor
Properties
destroyed
> destroyed: boolean
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:776
Flags the instances has been destroyed.
Inherited from
ParallelMotionManager.destroyed
manager
> manager: MotionManager
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:760
Inherited from
ParallelMotionManager.manager
parent
> readonly parent: InternalModel
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:777
Inherited from
ParallelMotionManager.parent
playing
> playing: boolean
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:772
Flags there's a motion playing.
Inherited from
ParallelMotionManager.playing
queueManager
> readonly queueManager: CubismMotionQueueManager
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6180
settings
> readonly settings: CubismModelSettings
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6181
The ModelSettings reference.
Overrides
ParallelMotionManager.settings
state
> state: MotionState
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:768
Maintains the state of this MotionManager.
Inherited from
ParallelMotionManager.state
tag
> tag: string
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:759
Tag for logging.
Inherited from
ParallelMotionManager.tag
prefixed
> static prefixed: string | boolean
Defined in: node_modules/eventemitter3/index.d.ts:9
Inherited from
ParallelMotionManager.prefixed
Methods
_startMotion()
> protected _startMotion(motion, onFinish?, ignoreParamIds?, loop?): number
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6185
Starts the Motion.
Parameters
motion
CubismMotion
onFinish?
(motion) => void
ignoreParamIds?
string[]
loop?
boolean
Returns
number
Overrides
ParallelMotionManager._startMotion
_stopAllMotions()
> protected _stopAllMotions(): void
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6186
Stops all playing motions.
Returns
void
Overrides
ParallelMotionManager._stopAllMotions
addListener()
> addListener<T>(event, fn, context?): this
Defined in: node_modules/eventemitter3/index.d.ts:45
Type Parameters
T
T extends string | symbol
Parameters
event
T
fn
(...args) => void
context?
any
Returns
this
Inherited from
ParallelMotionManager.addListener
destroy()
> destroy(): void
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6189
Destroys the instance.
Returns
void
Emits
Overrides
ParallelMotionManager.destroy
emit()
> emit<T>(event, ...args): boolean
Defined in: node_modules/eventemitter3/index.d.ts:32
Calls each of the listeners registered for a given event.
Type Parameters
T
T extends string | symbol
Parameters
event
T
args
...any[]
Returns
boolean
Inherited from
ParallelMotionManager.emit
eventNames()
> eventNames(): (string | symbol)[]
Defined in: node_modules/eventemitter3/index.d.ts:15
Return an array listing the events for which the emitter has registered listeners.
Returns
(string | symbol)[]
Inherited from
ParallelMotionManager.eventNames
getMotionName()
> protected getMotionName(definition): string
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6188
Retrieves the motion's name by its definition.
Parameters
definition
Motion
Returns
string
The motion's name.
Overrides
ParallelMotionManager.getMotionName
init()
> protected init(): void
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6183
Returns
void
isFinished()
> isFinished(): boolean
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6184
Checks if the motion playback has finished.
Returns
boolean
Overrides
ParallelMotionManager.isFinished
listenerCount()
> listenerCount(event): number
Defined in: node_modules/eventemitter3/index.d.ts:27
Return the number of listeners listening to a given event.
Parameters
event
string | symbol
Returns
number
Inherited from
ParallelMotionManager.listenerCount
listeners()
> listeners<T>(event): (...args) => void[]
Defined in: node_modules/eventemitter3/index.d.ts:20
Return the listeners registered for a given event.
Type Parameters
T
T extends string | symbol
Parameters
event
T
Returns
(...args) => void[]
Inherited from
ParallelMotionManager.listeners
off()
> off<T>(event, fn?, context?, once?): this
Defined in: node_modules/eventemitter3/index.d.ts:69
Type Parameters
T
T extends string | symbol
Parameters
event
T
fn?
(...args) => void
context?
any
once?
boolean
Returns
this
Inherited from
ParallelMotionManager.off
on()
> on<T>(event, fn, context?): this
Defined in: node_modules/eventemitter3/index.d.ts:40
Add a listener for a given event.
Type Parameters
T
T extends string | symbol
Parameters
event
T
fn
(...args) => void
context?
any
Returns
this
Inherited from
ParallelMotionManager.on
once()
> once<T>(event, fn, context?): this
Defined in: node_modules/eventemitter3/index.d.ts:54
Add a one-time listener for a given event.
Type Parameters
T
T extends string | symbol
Parameters
event
T
fn
(...args) => void
context?
any
Returns
this
Inherited from
ParallelMotionManager.once
playMotionLastFrame()
> playMotionLastFrame(group, index): Promise<boolean>
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6190
Parameters
group
string
index
number
Returns
Promise<boolean>
Overrides
ParallelMotionManager.playMotionLastFrame
removeAllListeners()
> removeAllListeners(event?): this
Defined in: node_modules/eventemitter3/index.d.ts:79
Remove all listeners, or those of the specified event.
Parameters
event?
string | symbol
Returns
this
Inherited from
ParallelMotionManager.removeAllListeners
removeListener()
> removeListener<T>(event, fn?, context?, once?): this
Defined in: node_modules/eventemitter3/index.d.ts:63
Remove the listeners of a given event.
Type Parameters
T
T extends string | symbol
Parameters
event
T
fn?
(...args) => void
context?
any
once?
boolean
Returns
this
Inherited from
ParallelMotionManager.removeListener
startMotion()
> startMotion(group, index, priority?, options?): Promise<boolean>
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:788
Starts a motion as given priority.
Parameters
group
string
The motion group.
index
number
Index in the motion group.
priority?
The priority to be applied. default: 2 (NORMAL)
options?
string[] | ParallelMotionStartOptions
Returns
Promise<boolean>
Promise that resolves with true if the motion is successfully started, with false otherwise.
Inherited from
ParallelMotionManager.startMotion
startRandomMotion()
> startRandomMotion(group, priority?, loop?): Promise<boolean>
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:796
Starts a random Motion as given priority.
Parameters
group
string
The motion group.
priority?
The priority to be applied. (default: 1 IDLE)
loop?
ParallelMotionStartRandomOptions
Whether the motion should loop. Overrides Cubism 3/4/5 motion JSON loop metadata when specified.
Returns
Promise<boolean>
Promise that resolves with true if the motion is successfully started, with false otherwise.
Inherited from
ParallelMotionManager.startRandomMotion
stopAllMotions()
> stopAllMotions(): void
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:800
Stops all playing motions as well as the sound.
Returns
void
Inherited from
ParallelMotionManager.stopAllMotions
update()
> update(model, now): boolean
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:807
Updates parameters of the core model.
Parameters
model
object
The core model.
now
number
Current time in milliseconds.
Returns
boolean
True if the parameters have been actually updated.
Inherited from
ParallelMotionManager.update
updateParameters()
> protected updateParameters(model, now): boolean
Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:6187
Updates parameters of the core model.
Parameters
model
CubismModel
The core model.
now
number
Current time in milliseconds.
Returns
boolean
True if the parameters have been actually updated.
Overrides
ParallelMotionManager.updateParameters