Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    IUpdateable Interface

    Namespace: Stride.Games
    Assembly: Stride.Games.dll

    An interface that is called by Update(GameTime).

    public interface IUpdateable
    Name Description
    Properties
    Enabled

    Gets a value indicating whether the game component's Update method should be called by Update(GameTime).

    UpdateOrder

    Gets the update order relative to other game components. Lower values are updated first.

    Methods
    Update(GameTime)

    This method is called when this game component is updated.

    Events
    EnabledChanged

    Occurs when the Enabled property changes.

    UpdateOrderChanged

    Occurs when the UpdateOrder property changes.

    | Improve this Doc View Source

    Properties


    Enabled

    Gets a value indicating whether the game component's Update method should be called by Update(GameTime).

    bool Enabled { get; }
    Property Value
    Type Description
    System.Boolean

    true if update is enabled; otherwise, false.


    UpdateOrder

    Gets the update order relative to other game components. Lower values are updated first.

    int UpdateOrder { get; }
    Property Value
    Type Description
    System.Int32

    The update order.

    | Improve this Doc View Source

    Methods


    Update(GameTime)

    This method is called when this game component is updated.

    void Update(GameTime gameTime)
    Parameters
    Type Name Description
    GameTime gameTime

    The current timing.

    | Improve this Doc View Source

    Events


    EnabledChanged

    Occurs when the Enabled property changes.

    event EventHandler<EventArgs> EnabledChanged
    Event Type
    Type Description
    System.EventHandler<System.EventArgs>

    UpdateOrderChanged

    Occurs when the UpdateOrder property changes.

    event EventHandler<EventArgs> UpdateOrderChanged
    Event Type
    Type Description
    System.EventHandler<System.EventArgs>

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation