Class BehaviorManager
Inheritance
BehaviorManager
Implements
Inherited Members
Namespace: Evergine.Framework.Managers
Assembly: Evergine.Framework.dll
Syntax
public class BehaviorManager : UpdatableSceneManager, IDependencyObject
Constructors
BehaviorManager()
Initializes a new instance of the BehaviorManager class.
Declaration
public BehaviorManager()
Properties
SupportedBehavior
Gets or sets the family of supported behaviors.
Declaration
protected FamilyType SupportedBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| FamilyType |
Methods
InternalAddBehavior(Behavior)
Adds a Behavior to this instance.
Declaration
protected virtual void InternalAddBehavior(Behavior behavior)
Parameters
| Type | Name | Description |
|---|---|---|
| Behavior | behavior | The Behavior to add. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If behavior is null. |
InternalRemoveBehavior(Behavior)
Removes a Behavior from this instance.
Declaration
protected virtual void InternalRemoveBehavior(Behavior behavior)
Parameters
| Type | Name | Description |
|---|---|---|
| Behavior | behavior | The Behavior to remove. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If behavior is null. |
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()
Overrides
SortBehaviors()
Sorts the behaviors by update order value, in ascending order.
Declaration
public void SortBehaviors()
Update(TimeSpan)
Updates this instance.
Declaration
public override void Update(TimeSpan gameTime)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | gameTime | The elapsed game time since the last update. |