fix: IGameManager Action Types
This commit is contained in:
parent
3817ebebfe
commit
8269c789a6
|
@ -5,8 +5,8 @@ namespace Syntriax.Engine.Core.Abstract;
|
||||||
|
|
||||||
public interface IGameManager : IEntity, IEnumerable<IGameObject>
|
public interface IGameManager : IEntity, IEnumerable<IGameObject>
|
||||||
{
|
{
|
||||||
Action<GameManager, IGameObject>? OnGameObjectRegistered { get; set; }
|
Action<IGameManager, IGameObject>? OnGameObjectRegistered { get; set; }
|
||||||
Action<GameManager, IGameObject>? OnGameObjectUnRegistered { get; set; }
|
Action<IGameManager, IGameObject>? OnGameObjectUnRegistered { get; set; }
|
||||||
|
|
||||||
|
|
||||||
IReadOnlyList<IGameObject> GameObjects { get; }
|
IReadOnlyList<IGameObject> GameObjects { get; }
|
||||||
|
|
|
@ -11,8 +11,8 @@ namespace Syntriax.Engine.Core;
|
||||||
[System.Diagnostics.DebuggerDisplay("GameObject Count: {_gameObjects.Count}")]
|
[System.Diagnostics.DebuggerDisplay("GameObject Count: {_gameObjects.Count}")]
|
||||||
public class GameManager : IGameManager
|
public class GameManager : IGameManager
|
||||||
{
|
{
|
||||||
public Action<GameManager, IGameObject>? OnGameObjectRegistered { get; set; } = null;
|
public Action<IGameManager, IGameObject>? OnGameObjectRegistered { get; set; } = null;
|
||||||
public Action<GameManager, IGameObject>? OnGameObjectUnRegistered { get; set; } = null;
|
public Action<IGameManager, IGameObject>? OnGameObjectUnRegistered { get; set; } = null;
|
||||||
|
|
||||||
public Action<IInitialize>? OnInitialized { get; set; } = null;
|
public Action<IInitialize>? OnInitialized { get; set; } = null;
|
||||||
public Action<IInitialize>? OnFinalized { get; set; } = null;
|
public Action<IInitialize>? OnFinalized { get; set; } = null;
|
||||||
|
|
Loading…
Reference in New Issue