Overhauled IActionChain

This commit is contained in:
bigguy345 committed 2025-07-02 21:46:43 +03:00
1 parent d5835ddc6d
commit 1b96a3dc87
3 files changed
+19

No files matched your search

@@ -357,8 +357,15 @@ public interface IActionManager {
*/
void clear();
/**
* @return a chain that can be used to fire Actions sequentially based on sequentialQueue
*/
IActionChain chain();
/**
*
* @return a chain that can be used to fire Actions in parallel based on parallelQueue
*/
IActionChain parallelChain();
@@ -4,6 +4,12 @@ import java.util.function.Consumer;
public interface IActionChain {
String getName();
IActionChain setName(String name);
IActionQueue getQueue();
IActionChain after(int delay, String name, Consumer<IAction> task);
IActionChain after(int delay, Consumer<IAction> task);
@@ -53,4 +53,10 @@ public interface IActionQueue {
boolean cancel(String actionName);
void clear();
/**
* @return an IActionChain based on this queue.
*/
IActionChain chain();
}