Syntriax.Engine/Engine.Core/Abstract/IGameObject.cs

20 lines
587 B
C#
Raw Normal View History

2023-11-23 22:07:49 +03:00
namespace Syntriax.Engine.Core.Abstract;
2024-02-01 12:14:53 +03:00
/// <summary>
/// Represents a game object with various properties and functionalities.
/// </summary>
public interface IGameObject : IEntity, IAssignableGameManager, IAssignableTransform, IAssignableBehaviourController, INameable, IInitialize
2023-11-23 22:07:49 +03:00
{
2024-02-01 12:14:53 +03:00
/// <summary>
/// Event triggered when the <see cref="Update"/> method is called.
/// </summary>
2024-07-15 01:13:39 +03:00
event OnUpdatedDelegate? OnUpdated;
2023-11-23 22:07:49 +03:00
2024-02-01 12:14:53 +03:00
/// <summary>
/// Updates the game object.
/// </summary>
void Update();
2024-07-15 01:13:39 +03:00
delegate void OnUpdatedDelegate(IGameObject sender);
2023-11-23 22:07:49 +03:00
}