22 lines
622 B
C#
22 lines
622 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Syntriax.Engine.Core.Abstract;
|
|
|
|
public interface IGameManager : IEntity, IEnumerable<IGameObject>
|
|
{
|
|
Action<IGameManager, IGameObject>? OnGameObjectRegistered { get; set; }
|
|
Action<IGameManager, IGameObject>? OnGameObjectUnRegistered { get; set; }
|
|
|
|
|
|
IReadOnlyList<IGameObject> GameObjects { get; }
|
|
|
|
|
|
void RegisterGameObject(IGameObject gameObject);
|
|
T InstantiateGameObject<T>(params object?[]? args) where T : class, IGameObject;
|
|
IGameObject RemoveGameObject(IGameObject gameObject);
|
|
|
|
void Update(EngineTime time);
|
|
void PreDraw();
|
|
}
|