C# Class WhiteCore.Region.Animation.Animator

Handle all animation duties for a scene presence
Inheritance: IAnimator
ファイルを表示 Open project: WhiteCoreSim/WhiteCore-Dev Class Usage Examples

Protected Properties

Property Type Description
SLOWFLY_DELAY int
m_animations WhiteCore.Framework.ClientInterfaces.AnimationSet
m_movementAnimation string
m_scenePresence IScenePresence
m_useSplatAnimation bool

Public Methods

Method 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 method

public AddAnimation ( string name, UUID objectID ) : bool
name string
objectID UUID
return bool

AddAnimation() public method

public AddAnimation ( UUID animID, UUID objectID ) : void
animID UUID
objectID UUID
return void

Animator() public method

public Animator ( IScenePresence sp ) : System
sp IScenePresence
return System

Close() public method

Close out and remove any current data
public Close ( ) : void
return void

GetAnimationArray() public method

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

GetDefaultAnimationOverride() public method

public GetDefaultAnimationOverride ( string anim_state ) : string
anim_state string
return string

GetMovementAnimation() public method

This method determines the proper movement related animation
public GetMovementAnimation ( ) : string
return string

RemoveAnimation() public method

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

RemoveAnimation() public method

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

ResetAnimations() public method

Clear out all animations
public ResetAnimations ( ) : void
return void

ResetDefaultAnimationOverride() public method

public ResetDefaultAnimationOverride ( string anim_state ) : void
anim_state string
return void

SendAnimPack() public method

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

SendAnimPack() public method

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

SendAnimPackToClient() public method

Send an animation update to the given client
public SendAnimPackToClient ( IClientAPI client ) : void
client IClientAPI
return void

SetDefaultAnimationOverride() public method

public SetDefaultAnimationOverride ( string anim_state, UUID animID, string animation ) : void
anim_state string
animID UUID
animation string
return void

TrySetMovementAnimation() public method

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

TrySetMovementAnimation() public method

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
return void

UpdateMovementAnimations() public method

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

Property Details

SLOWFLY_DELAY protected_oe property

protected int SLOWFLY_DELAY
return int

m_animations protected_oe property

protected AnimationSet,WhiteCore.Framework.ClientInterfaces m_animations
return WhiteCore.Framework.ClientInterfaces.AnimationSet

m_movementAnimation protected_oe property

protected string m_movementAnimation
return string

m_scenePresence protected_oe property

protected IScenePresence m_scenePresence
return IScenePresence

m_useSplatAnimation protected_oe property

protected bool m_useSplatAnimation
return bool