Lots more work on implementing battling
This commit is contained in:
1 parent
554e1cf2cd
commit
a049dda240
29 files changed
+1226
-48
No files matched your search
@@ -24,4 +24,18 @@ public static class ScriptExecution
|
||||
hook(script);
|
||||
}
|
||||
}
|
||||
|
||||
public static void RunScriptHook(this IReadOnlyList<IEnumerable<ScriptContainer>> source, Action<Script> hook)
|
||||
{
|
||||
foreach (var container in source.SelectMany(x => x))
|
||||
{
|
||||
if (container.IsEmpty)
|
||||
continue;
|
||||
var script = container.Script;
|
||||
if (script.IsSuppressed)
|
||||
continue;
|
||||
hook(script);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user