C# Класс WhiteCore.Region.Animation.Animator

Handle all animation duties for a scene presence
Наследование: IAnimator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
SLOWFLY_DELAY int
m_animations WhiteCore.Framework.ClientInterfaces.AnimationSet
m_movementAnimation string
m_scenePresence IScenePresence
m_useSplatAnimation bool

Открытые методы

Метод Описание
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

Описание методов

AddAnimation() публичный Метод

public AddAnimation ( string name, UUID objectID ) : bool
name string
objectID UUID
Результат bool

AddAnimation() публичный Метод

public AddAnimation ( UUID animID, UUID objectID ) : void
animID UUID
objectID UUID
Результат void

Animator() публичный Метод

public Animator ( IScenePresence sp ) : System
sp IScenePresence
Результат System

Close() публичный Метод

Close out and remove any current data
public Close ( ) : void
Результат void

GetAnimationArray() публичный Метод

Gets a list of the animations that are currently in use by this avatar
public GetAnimationArray ( ) : UUID[]
Результат UUID[]

GetDefaultAnimationOverride() публичный Метод

public GetDefaultAnimationOverride ( string anim_state ) : string
anim_state string
Результат string

GetMovementAnimation() публичный Метод

This method determines the proper movement related animation
public GetMovementAnimation ( ) : string
Результат string

RemoveAnimation() публичный Метод

Remove the given animation from the list of current animations
public RemoveAnimation ( string name ) : bool
name string
Результат bool

RemoveAnimation() публичный Метод

Remove the given animation from the list of current animations
public RemoveAnimation ( UUID animID ) : void
animID UUID
Результат void

ResetAnimations() публичный Метод

Clear out all animations
public ResetAnimations ( ) : void
Результат void

ResetDefaultAnimationOverride() публичный Метод

public ResetDefaultAnimationOverride ( string anim_state ) : void
anim_state string
Результат void

SendAnimPack() публичный Метод

Send animation information about this avatar to all clients.
public SendAnimPack ( ) : void
Результат void

SendAnimPack() публичный Метод

Sends all clients the given information for this avatar
public SendAnimPack ( UUID animations, int sequenceNums, UUID objectIDs ) : void
animations UUID
sequenceNums int
objectIDs UUID
Результат void

SendAnimPackToClient() публичный Метод

Send an animation update to the given client
public SendAnimPackToClient ( IClientAPI client ) : void
client IClientAPI
Результат void

SetDefaultAnimationOverride() публичный Метод

public SetDefaultAnimationOverride ( string anim_state, UUID animID, string animation ) : void
anim_state string
animID UUID
animation string
Результат void

TrySetMovementAnimation() публичный Метод

The movement animation is reserved for "main" animations that are mutually exclusive, e.g. flying and sitting.
public TrySetMovementAnimation ( string anim ) : void
anim string
Результат void

TrySetMovementAnimation() публичный Метод

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
Результат void

UpdateMovementAnimations() публичный Метод

Update the movement animation of this avatar according to its current state
public UpdateMovementAnimations ( bool sendTerseUpdate ) : void
sendTerseUpdate bool
Результат void

Описание свойств

SLOWFLY_DELAY защищенное свойство

protected int SLOWFLY_DELAY
Результат int

m_animations защищенное свойство

protected AnimationSet,WhiteCore.Framework.ClientInterfaces m_animations
Результат WhiteCore.Framework.ClientInterfaces.AnimationSet

m_movementAnimation защищенное свойство

protected string m_movementAnimation
Результат string

m_scenePresence защищенное свойство

protected IScenePresence m_scenePresence
Результат IScenePresence

m_useSplatAnimation защищенное свойство

protected bool m_useSplatAnimation
Результат bool