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 System;
namespace OmegaLeo.HelperLib.Game.Models
{
internal class DelayedAction
{
public float TimeRemaining { get; set; }
public float InitialDelay { get; }
public Action Action { get; }
public bool IsRepeating { get; }
public bool IsCancelled { get; set; }
public DelayedAction(float delay, Action action, bool isRepeating)
{
TimeRemaining = delay;
InitialDelay = delay;
Action = action;
IsRepeating = isRepeating;
IsCancelled = false;
}
}
}