summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts31
1 files changed, 15 insertions, 16 deletions
diff --git a/rules.ts b/rules.ts
index b3b3448..cb370a7 100644
--- a/rules.ts
+++ b/rules.ts
@@ -12,7 +12,6 @@ import {
Game,
Icon,
StateNode,
- PlayCardArgs,
Player,
PlayerCard,
PlayerTurnArgs,
@@ -383,21 +382,21 @@ function get_active_node(
return a === null ? null : a.node;
}
-function get_nodes_for_state(
- state: string,
- engine: EngineNode[] = game.engine
-): StateNode[] {
- let nodes = [];
- for (let i of engine) {
- if (i.t === state_node && i.s === state) {
- nodes.push(i);
- }
- if (i.t === seq_node) {
- nodes = nodes.concat(get_nodes_for_state(state, i.c));
- }
- }
- return nodes;
-}
+// function get_nodes_for_state(
+// state: string,
+// engine: EngineNode[] = game.engine
+// ): StateNode[] {
+// let nodes = [];
+// for (let i of engine) {
+// if (i.t === state_node && i.s === state) {
+// nodes.push(i);
+// }
+// if (i.t === seq_node) {
+// nodes = nodes.concat(get_nodes_for_state(state, i.c));
+// }
+// }
+// return nodes;
+// }
function get_active_node_args<T = any>(): T {
const node = get_active_node(game.engine);