BS 0.1.0 修复Architecture.TimelineUpdate无法立即更新所有能够更新的错误

This commit is contained in:
2025-07-14 22:09:35 +08:00
parent e8286f711f
commit b8836df198
2 changed files with 12 additions and 10 deletions

View File

@@ -388,16 +388,21 @@ namespace Convention
public static void UpdateTimeline() public static void UpdateTimeline()
{ {
foreach (var pair in TimelineQuenes) for (bool stats = true; stats;)
{ {
var timeline = pair.Value; stats = false;
if(timeline.Quene[timeline.Context].predicate()) foreach (var pair in TimelineQuenes)
{ {
foreach (var action in timeline.Quene[timeline.Context].actions) var timeline = pair.Value;
if (timeline.Quene[timeline.Context].predicate())
{ {
action(); stats = true;
foreach (var action in timeline.Quene[timeline.Context].actions)
{
action();
}
timeline.Context++;
} }
timeline.Context++;
} }
} }
} }

View File

@@ -1,8 +1,5 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq;
using static System.Net.Mime.MediaTypeNames;
namespace Convention.Symbolization.Internal namespace Convention.Symbolization.Internal
{ {