daily update on 20240610 by nitload youmu

This commit is contained in:
Nitload
2024-06-10 15:11:01 +08:00
parent c0093f7b5c
commit f6963b8e00
96 changed files with 2927 additions and 2290 deletions
@@ -125,14 +125,11 @@ namespace StgSharp.Logic
{
do
{
try
BlueprintNode node;
while (RequestNextNode(out node))
{
while (true)
{
RequestNextNode().Run();
}
node.Run();
}
catch (NodeClearException) { }
} while (!terminate());
}
@@ -199,16 +196,18 @@ namespace StgSharp.Logic
beginNode.InputData = parameters;
}
private BlueprintNode RequestNextNode()
private bool RequestNextNode(out BlueprintNode node)
{
if (currentNodeIndex < nodeList.Count)
{
BlueprintNode ret = nodeList[currentNodeIndex];
Interlocked.Increment(ref currentNodeIndex);
return ret;
node = ret;
return true;
}
Interlocked.Exchange(ref currentNodeIndex, 0);
throw new NodeClearException();
node = default!;
return false;
}
string[] IConvertableToBlueprintNode.InputInterfacesName