Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GameSystemCollection Class

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

    A collection of game components.

    System.Object → FastCollection<IGameSystemBase> → TrackingCollection<IGameSystemBase> → GameSystemCollection
    Derived from GameSystemCollection:

    public class GameSystemCollection : TrackingCollection<IGameSystemBase>, ITrackingCollectionChanged, IGameSystemCollection, IList<IGameSystemBase>, ICollection<IGameSystemBase>, IReadOnlyList<IGameSystemBase>, IReadOnlyCollection<IGameSystemBase>, IEnumerable<IGameSystemBase>, IEnumerable, IDisposable
    Name Description
    Constructors
    GameSystemCollection(IServiceRegistry)
    Properties
    IsFirstUpdateDone

    Gets a value indicating whether first update has been done.

    State

    Gets the state of this game system collection.

    Methods
    Dispose()
    Draw(GameTime)

    Reference page contains code sample.

    Initialize()
    LoadContent()

    Loads the content.

    UnloadContent()

    Called when graphics resources need to be unloaded. Override this method to unload any game-specific graphics resources.

    Update(GameTime)

    Reference page contains links to related conceptual articles.

    | Improve this Doc View Source

    Constructors


    GameSystemCollection(IServiceRegistry)

    public GameSystemCollection(IServiceRegistry registry)
    Parameters
    Type Name Description
    IServiceRegistry registry
    | Improve this Doc View Source

    Properties


    IsFirstUpdateDone

    Gets a value indicating whether first update has been done.

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

    true if first update has been done; otherwise, false.


    State

    Gets the state of this game system collection.

    public GameSystemState State { get; }
    Property Value
    Type Description
    GameSystemState

    The state of this game system collection.

    | Improve this Doc View Source

    Methods


    Dispose()

    public void Dispose()

    Draw(GameTime)

    Reference page contains code sample.

    public virtual void Draw(GameTime gameTime)
    Parameters
    Type Name Description
    GameTime gameTime

    Time passed since the last call to Draw.


    Initialize()

    public void Initialize()

    LoadContent()

    Loads the content.

    public virtual void LoadContent()

    UnloadContent()

    Called when graphics resources need to be unloaded. Override this method to unload any game-specific graphics resources.

    public virtual void UnloadContent()

    Update(GameTime)

    Reference page contains links to related conceptual articles.

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

    Time passed since the last call to Update.


    Inherited Members

    TrackingCollection<IGameSystemBase>.CollectionChanged
    TrackingCollection<IGameSystemBase>.InsertItem(Int32, IGameSystemBase)
    TrackingCollection<IGameSystemBase>.RemoveItem(Int32)
    TrackingCollection<IGameSystemBase>.ClearItems()
    TrackingCollection<IGameSystemBase>.ClearItemsEvents()
    TrackingCollection<IGameSystemBase>.SetItem(Int32, IGameSystemBase)
    FastCollection<IGameSystemBase>.Capacity
    FastCollection<IGameSystemBase>.Count
    FastCollection<IGameSystemBase>.Item[Int32]
    FastCollection<IGameSystemBase>.Add(IGameSystemBase)
    FastCollection<IGameSystemBase>.Clear()
    FastCollection<IGameSystemBase>.Contains(IGameSystemBase)
    FastCollection<IGameSystemBase>.CopyTo(IGameSystemBase[], Int32)
    FastCollection<IGameSystemBase>.IndexOf(IGameSystemBase)
    FastCollection<IGameSystemBase>.Insert(Int32, IGameSystemBase)
    FastCollection<IGameSystemBase>.Remove(IGameSystemBase)
    FastCollection<IGameSystemBase>.RemoveAt(Int32)
    FastCollection<IGameSystemBase>.IEnumerable<IGameSystemBase>.GetEnumerator()
    FastCollection<IGameSystemBase>.IEnumerable.GetEnumerator()
    FastCollection<IGameSystemBase>.AddRange<TE>(TE)
    FastCollection<IGameSystemBase>.GetEnumerator()
    FastCollection<IGameSystemBase>.Sort()
    FastCollection<IGameSystemBase>.Sort(IComparer<IGameSystemBase>)
    FastCollection<IGameSystemBase>.Sort(Int32, Int32, IComparer<IGameSystemBase>)
    FastCollection<IGameSystemBase>.ICollection<IGameSystemBase>.IsReadOnly
    FastCollection<IGameSystemBase>.EnsureCapacity(Int32)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ArrayExtensions.ComputeHash<T>(ICollection<T>, IEqualityComparer<T>)
    CollectionExtensions.SwapRemove<T>(IList<T>, T)
    CollectionExtensions.SwapRemoveAt<T>(IList<T>, Int32)
    CollectionExtensions.GetItemOrNull<T>(IList<T>, Int32)
    CollectionExtensions.IndexOf<T>(IReadOnlyList<T>, T)
    EnumerableExtensions.IsNullOrEmpty(IEnumerable)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.LastIndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.NotNull<T>(IEnumerable<T>)
    EnumerableExtensions.ToHashCode<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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