UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

250 lines (108 loc) 4.89 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [EntityModelAnimationEventPayloads](./server.entitymodelanimationeventpayloads.md) ## EntityModelAnimationEventPayloads interface Event payloads for EntityModelAnimation emitted events. \*\*Category:\*\* Events **Signature:** ```typescript export interface EntityModelAnimationEventPayloads ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> ["ENTITY\_MODEL\_ANIMATION.PAUSE"](./server.entitymodelanimationeventpayloads._entity_model_animation.pause_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; } </td><td> Emitted when an entity model animation is paused. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.PLAY"](./server.entitymodelanimationeventpayloads._entity_model_animation.play_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; } </td><td> Emitted when an entity model animation is played. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.RESTART"](./server.entitymodelanimationeventpayloads._entity_model_animation.restart_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; } </td><td> Emitted when an entity model animation is restarted. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.SET\_BLEND\_MODE"](./server.entitymodelanimationeventpayloads._entity_model_animation.set_blend_mode_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; blendMode: [EntityModelAnimationBlendMode](./server.entitymodelanimationblendmode.md)<!-- -->; } </td><td> Emitted when the blend mode of an entity model animation is set. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.SET\_CLAMP\_WHEN\_FINISHED"](./server.entitymodelanimationeventpayloads._entity_model_animation.set_clamp_when_finished_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; clampWhenFinished: boolean; } </td><td> Emitted when the clamp when finished setting of an entity model animation is set. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.SET\_FADES\_IN"](./server.entitymodelanimationeventpayloads._entity_model_animation.set_fades_in_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; fadesIn: boolean; } </td><td> Emitted when the fade in behavior of an entity model animation is set. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.SET\_FADES\_OUT"](./server.entitymodelanimationeventpayloads._entity_model_animation.set_fades_out_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; fadesOut: boolean; } </td><td> Emitted when the fade out behavior of an entity model animation is set. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.SET\_LOOP\_MODE"](./server.entitymodelanimationeventpayloads._entity_model_animation.set_loop_mode_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; loopMode: [EntityModelAnimationLoopMode](./server.entitymodelanimationloopmode.md)<!-- -->; } </td><td> Emitted when the loop mode of an entity model animation is set. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.SET\_PLAYBACK\_RATE"](./server.entitymodelanimationeventpayloads._entity_model_animation.set_playback_rate_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; playbackRate: number; } </td><td> Emitted when the playback rate of an entity model animation is set. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.SET\_WEIGHT"](./server.entitymodelanimationeventpayloads._entity_model_animation.set_weight_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; weight: number; } </td><td> Emitted when the weight of an entity model animation is set. </td></tr> <tr><td> ["ENTITY\_MODEL\_ANIMATION.STOP"](./server.entitymodelanimationeventpayloads._entity_model_animation.stop_.md) </td><td> </td><td> { entityModelAnimation: [EntityModelAnimation](./server.entitymodelanimation.md)<!-- -->; } </td><td> Emitted when an entity model animation is stopped. </td></tr> </tbody></table>