C# Class WhiteCore.Region.Animation.Animator

Handle all animation duties for a scene presence
Inheritance: IAnimator
Afficher le fichier Open project: WhiteCoreSim/WhiteCore-Dev Class Usage Examples

Protected Properties

Свойство Type Description
SLOWFLY_DELAY int
m_animations WhiteCore.Framework.ClientInterfaces.AnimationSet
m_movementAnimation string
m_scenePresence IScenePresence
m_useSplatAnimation bool

Méthodes publiques

Méthode Description
AddAnimation ( string name, UUID objectID ) : bool
AddAnimation ( UUID animID, UUID objectID ) : void
Animator ( IScenePresence sp ) : System
Close ( ) : void

Close out and remove any current data

GetAnimationArray ( ) : UUID[]

Gets a list of the animations that are currently in use by this avatar

GetDefaultAnimationOverride ( string anim_state ) : string
GetMovementAnimation ( ) : string

This method determines the proper movement related animation

RemoveAnimation ( string name ) : bool

Remove the given animation from the list of current animations

RemoveAnimation ( UUID animID ) : void

Remove the given animation from the list of current animations

ResetAnimations ( ) : void

Clear out all animations

ResetDefaultAnimationOverride ( string anim_state ) : void
SendAnimPack ( ) : void

Send animation information about this avatar to all clients.

SendAnimPack ( UUID animations, int sequenceNums, UUID objectIDs ) : void

Sends all clients the given information for this avatar

SendAnimPackToClient ( IClientAPI client ) : void

Send an animation update to the given client

SetDefaultAnimationOverride ( string anim_state, UUID animID, string animation ) : void
TrySetMovementAnimation ( string anim ) : void

The movement animation is reserved for "main" animations that are mutually exclusive, e.g. flying and sitting.

TrySetMovementAnimation ( string anim, bool sendTerseUpdateIfNotSending ) : void

The movement animation is reserved for "main" animations that are mutually exclusive, e.g. flying and sitting.

UpdateMovementAnimations ( bool sendTerseUpdate ) : void

Update the movement animation of this avatar according to its current state

Method Details

AddAnimation() public méthode

public AddAnimation ( string name, UUID objectID ) : bool
name string
objectID UUID
Résultat bool

AddAnimation() public méthode

public AddAnimation ( UUID animID, UUID objectID ) : void
animID UUID
objectID UUID
Résultat void

Animator() public méthode

public Animator ( IScenePresence sp ) : System
sp IScenePresence
Résultat System

Close() public méthode

Close out and remove any current data
public Close ( ) : void
Résultat void

GetAnimationArray() public méthode

Gets a list of the animations that are currently in use by this avatar
public GetAnimationArray ( ) : UUID[]
Résultat UUID[]

GetDefaultAnimationOverride() public méthode

public GetDefaultAnimationOverride ( string anim_state ) : string
anim_state string
Résultat string

GetMovementAnimation() public méthode

This method determines the proper movement related animation
public GetMovementAnimation ( ) : string
Résultat string

RemoveAnimation() public méthode

Remove the given animation from the list of current animations
public RemoveAnimation ( string name ) : bool
name string
Résultat bool

RemoveAnimation() public méthode

Remove the given animation from the list of current animations
public RemoveAnimation ( UUID animID ) : void
animID UUID
Résultat void

ResetAnimations() public méthode

Clear out all animations
public ResetAnimations ( ) : void
Résultat void

ResetDefaultAnimationOverride() public méthode

public ResetDefaultAnimationOverride ( string anim_state ) : void
anim_state string
Résultat void

SendAnimPack() public méthode

Send animation information about this avatar to all clients.
public SendAnimPack ( ) : void
Résultat void

SendAnimPack() public méthode

Sends all clients the given information for this avatar
public SendAnimPack ( UUID animations, int sequenceNums, UUID objectIDs ) : void
animations UUID
sequenceNums int
objectIDs UUID
Résultat void

SendAnimPackToClient() public méthode

Send an animation update to the given client
public SendAnimPackToClient ( IClientAPI client ) : void
client IClientAPI
Résultat void

SetDefaultAnimationOverride() public méthode

public SetDefaultAnimationOverride ( string anim_state, UUID animID, string animation ) : void
anim_state string
animID UUID
animation string
Résultat void

TrySetMovementAnimation() public méthode

The movement animation is reserved for "main" animations that are mutually exclusive, e.g. flying and sitting.
public TrySetMovementAnimation ( string anim ) : void
anim string
Résultat void

TrySetMovementAnimation() public méthode

The movement animation is reserved for "main" animations that are mutually exclusive, e.g. flying and sitting.
public TrySetMovementAnimation ( string anim, bool sendTerseUpdateIfNotSending ) : void
anim string
sendTerseUpdateIfNotSending bool
Résultat void

UpdateMovementAnimations() public méthode

Update the movement animation of this avatar according to its current state
public UpdateMovementAnimations ( bool sendTerseUpdate ) : void
sendTerseUpdate bool
Résultat void

Property Details

SLOWFLY_DELAY protected_oe property

protected int SLOWFLY_DELAY
Résultat int

m_animations protected_oe property

protected AnimationSet,WhiteCore.Framework.ClientInterfaces m_animations
Résultat WhiteCore.Framework.ClientInterfaces.AnimationSet

m_movementAnimation protected_oe property

protected string m_movementAnimation
Résultat string

m_scenePresence protected_oe property

protected IScenePresence m_scenePresence
Résultat IScenePresence

m_useSplatAnimation protected_oe property

protected bool m_useSplatAnimation
Résultat bool