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
@@ -69,14 +69,14 @@ namespace StgSharp.Logic
public void CompleteAndSkip()
{
//Console.WriteLine($"Complete\t{former.Name}\t->\t{after.Name}");
//Console.WriteLine($"Complete\t{former.ContextName}\t->\t{after.ContextName}");
formerCompleteSemaphore.Release();
}
public void CompleteAndWriteData(BlueprintPipelineArgs args)
{
this.args = args;
//Console.WriteLine($"Complete\t{former.Name}\t->\t{after.Name}");
//Console.WriteLine($"Complete\t{former.ContextName}\t->\t{after.ContextName}");
formerCompleteSemaphore.Release();
}
@@ -112,7 +112,7 @@ namespace StgSharp.Logic
public void WaitForStart()
{
//Console.WriteLine($"Waiting \t{former.Name}\t->\t{after.Name}");
//Console.WriteLine($"Waiting \t{former.ContextName}\t->\t{after.ContextName}");
formerCompleteSemaphore.Wait();
}