C# Класс FSO.Vitaboy.Avatar

The base class for all avatars in the game.
Наследование: FSO.Common.Rendering.Framework._3DComponent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Bindings List
Effect Microsoft.Xna.Framework.Graphics.Effect

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

Метод Описание
AddAccessory ( Appearance apr ) : void

Adds an accessory to this avatar.

Avatar ( Avatar old ) : System
Avatar ( Skeleton skel ) : System

Creates a new Avatar instance.

DeviceReset ( GraphicsDevice Device ) : void
Draw ( Microsoft device ) : void

Draws the meshes making up this Avatar instance.

DrawGeometry ( Microsoft device, Effect effect ) : void
Initialize ( ) : void

Initializes this Avatar instance.

ReloadSkeleton ( ) : void

When the skeleton changes (for example due to an animation) this method will recompute the meshes to adhere to the new skeleton positions.

RemoveAccessory ( Appearance apr ) : void

Remove an accessory from this avatar.

RemoveAppearance ( AvatarAppearanceInstance appearance, bool dispose ) : void

Removes an Appearance instance from this avatar.

StoreOnGPU ( GraphicsDevice device ) : void
Update ( FSO state ) : void

Updates this Avatar instance.

setVitaboyEffect ( Effect e ) : void

Защищенные методы

Метод Описание
AddAppearance ( Appearance appearance ) : AvatarAppearanceInstance

Adds an Appearance instance to this avatar.

AddBinding ( Binding binding ) : AvatarBindingInstance

Adds a Binding instance to this avatar.

RemoveBinding ( AvatarBindingInstance instance, bool dispose ) : void

Removes a Binding instance from this avatar.

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

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

Adds an accessory to this avatar.
public AddAccessory ( Appearance apr ) : void
apr Appearance The Appearance instance of the accessory.
Результат void

AddAppearance() защищенный Метод

Adds an Appearance instance to this avatar.
protected AddAppearance ( Appearance appearance ) : AvatarAppearanceInstance
appearance Appearance The Appearance instance to add.
Результат AvatarAppearanceInstance

AddBinding() защищенный Метод

Adds a Binding instance to this avatar.
protected AddBinding ( Binding binding ) : AvatarBindingInstance
binding Binding The Binding instance to add.
Результат AvatarBindingInstance

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

public Avatar ( Avatar old ) : System
old Avatar
Результат System

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

Creates a new Avatar instance.
public Avatar ( Skeleton skel ) : System
skel Skeleton A Skeleton instance.
Результат System

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

public DeviceReset ( GraphicsDevice Device ) : void
Device GraphicsDevice
Результат void

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

Draws the meshes making up this Avatar instance.
public Draw ( Microsoft device ) : void
device Microsoft A GraphicsDevice instance.
Результат void

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

public DrawGeometry ( Microsoft device, Effect effect ) : void
device Microsoft
effect Microsoft.Xna.Framework.Graphics.Effect
Результат void

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

Initializes this Avatar instance.
public Initialize ( ) : void
Результат void

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

When the skeleton changes (for example due to an animation) this method will recompute the meshes to adhere to the new skeleton positions.
public ReloadSkeleton ( ) : void
Результат void

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

Remove an accessory from this avatar.
public RemoveAccessory ( Appearance apr ) : void
apr Appearance The Appearance of the accessory to remove.
Результат void

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

Removes an Appearance instance from this avatar.
public RemoveAppearance ( AvatarAppearanceInstance appearance, bool dispose ) : void
appearance AvatarAppearanceInstance The Appearance instance to remove.
dispose bool Should the appearance be disposed?
Результат void

RemoveBinding() защищенный Метод

Removes a Binding instance from this avatar.
protected RemoveBinding ( AvatarBindingInstance instance, bool dispose ) : void
instance AvatarBindingInstance The Binding instance to remove.
dispose bool Should the binding be disposed?
Результат void

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

public StoreOnGPU ( GraphicsDevice device ) : void
device GraphicsDevice
Результат void

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

Updates this Avatar instance.
public Update ( FSO state ) : void
state FSO An UpdateState instance.
Результат void

setVitaboyEffect() публичный статический Метод

public static setVitaboyEffect ( Effect e ) : void
e Microsoft.Xna.Framework.Graphics.Effect
Результат void

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

Bindings публичное свойство

public List Bindings
Результат List

Effect публичное статическое свойство

public static Effect,Microsoft.Xna.Framework.Graphics Effect
Результат Microsoft.Xna.Framework.Graphics.Effect