C# Class FSO.Vitaboy.Avatar

The base class for all avatars in the game.
Inheritance: FSO.Common.Rendering.Framework._3DComponent
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Свойство Type Description
Bindings List
Effect Microsoft.Xna.Framework.Graphics.Effect

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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.

Method Details

AddAccessory() public méthode

Adds an accessory to this avatar.
public AddAccessory ( Appearance apr ) : void
apr Appearance The Appearance instance of the accessory.
Résultat void

AddAppearance() protected méthode

Adds an Appearance instance to this avatar.
protected AddAppearance ( Appearance appearance ) : AvatarAppearanceInstance
appearance Appearance The Appearance instance to add.
Résultat AvatarAppearanceInstance

AddBinding() protected méthode

Adds a Binding instance to this avatar.
protected AddBinding ( Binding binding ) : AvatarBindingInstance
binding Binding The Binding instance to add.
Résultat AvatarBindingInstance

Avatar() public méthode

public Avatar ( Avatar old ) : System
old Avatar
Résultat System

Avatar() public méthode

Creates a new Avatar instance.
public Avatar ( Skeleton skel ) : System
skel Skeleton A Skeleton instance.
Résultat System

DeviceReset() public méthode

public DeviceReset ( GraphicsDevice Device ) : void
Device GraphicsDevice
Résultat void

Draw() public méthode

Draws the meshes making up this Avatar instance.
public Draw ( Microsoft device ) : void
device Microsoft A GraphicsDevice instance.
Résultat void

DrawGeometry() public méthode

public DrawGeometry ( Microsoft device, Effect effect ) : void
device Microsoft
effect Microsoft.Xna.Framework.Graphics.Effect
Résultat void

Initialize() public méthode

Initializes this Avatar instance.
public Initialize ( ) : void
Résultat void

ReloadSkeleton() public méthode

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
Résultat void

RemoveAccessory() public méthode

Remove an accessory from this avatar.
public RemoveAccessory ( Appearance apr ) : void
apr Appearance The Appearance of the accessory to remove.
Résultat void

RemoveAppearance() public méthode

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?
Résultat void

RemoveBinding() protected méthode

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?
Résultat void

StoreOnGPU() public méthode

public StoreOnGPU ( GraphicsDevice device ) : void
device GraphicsDevice
Résultat void

Update() public méthode

Updates this Avatar instance.
public Update ( FSO state ) : void
state FSO An UpdateState instance.
Résultat void

setVitaboyEffect() public static méthode

public static setVitaboyEffect ( Effect e ) : void
e Microsoft.Xna.Framework.Graphics.Effect
Résultat void

Property Details

Bindings public_oe property

public List Bindings
Résultat List

Effect public_oe static_oe property

public static Effect,Microsoft.Xna.Framework.Graphics Effect
Résultat Microsoft.Xna.Framework.Graphics.Effect