Added new Game logic library to assist with game projects

This commit is contained in:
2025-12-09 22:34:26 +00:00
parent 7870cf623e
commit e0e191dc6b
25 changed files with 1169 additions and 5 deletions
@@ -0,0 +1,22 @@
using OmegaLeo.HelperLib.Game.Models;
namespace OmegaLeo.HelperLib.Game.Handlers
{
public class DelayedActionHandler
{
private readonly DelayedAction _action;
internal DelayedActionHandler(DelayedAction action)
{
_action = action;
}
public void Cancel()
{
if (_action != null)
_action.IsCancelled = true;
}
public bool IsCancelled => _action?.IsCancelled ?? true;
}
}