feat: PreUpdate and FirstActiveFrame to Behaviour

This commit is contained in:
2023-11-30 10:39:40 +03:00
parent d2881e94df
commit bb6990a80c
3 changed files with 35 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ namespace Syntriax.Engine.Core.Abstract;
/// </summary>
public interface IBehaviourController : IAssignableGameObject
{
/// <summary>
/// Callback triggered when the <see cref="Update(GameTime)"/> is called but right before the <see cref="OnUpdate"/> action is triggered.
/// </summary>
Action<IBehaviourController, GameTime>? OnPreUpdate { get; set; }
/// <summary>
/// Callback triggered when the <see cref="Update(GameTime)"/> is called.
/// </summary>