Search Results for

    Show / Hide Table of Contents

    Class BehaviorManager

    Holds all the Behavior instances present in a Scene and updates them.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    SceneManager
    UpdatableSceneManager
    BehaviorManager
    Implements
    IDependencyObject
    Inherited Members
    SceneManager.Managers
    SceneManager.Scene
    SceneManager.OnLoaded()
    SceneManager.OnAttached()
    SceneManager.OnActivated()
    SceneManager.Start()
    SceneManager.OnDeactivated()
    SceneManager.OnDestroy()
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.ShouldBeActivated
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    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

    Thrown 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

    Thrown if the behavior is null.

    OnDetach()

    Invoked when the object is detached.

    Declaration
    protected override void OnDetach()
    Overrides
    SceneManager.OnDetach()

    SortBehaviors()

    Sorts the behaviors by their 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.

    Overrides
    UpdatableSceneManager.Update(TimeSpan)

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX