BS 0.1.0 修复Architecture.TimelineUpdate无法立即更新所有能够更新的错误
This commit is contained in:
@@ -388,11 +388,15 @@ namespace Convention
|
||||
|
||||
public static void UpdateTimeline()
|
||||
{
|
||||
for (bool stats = true; stats;)
|
||||
{
|
||||
stats = false;
|
||||
foreach (var pair in TimelineQuenes)
|
||||
{
|
||||
var timeline = pair.Value;
|
||||
if(timeline.Quene[timeline.Context].predicate())
|
||||
if (timeline.Quene[timeline.Context].predicate())
|
||||
{
|
||||
stats = true;
|
||||
foreach (var action in timeline.Quene[timeline.Context].actions)
|
||||
{
|
||||
action();
|
||||
@@ -401,6 +405,7 @@ namespace Convention
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void ResetTimelineContext(int timelineId)
|
||||
{
|
||||
|
@@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
|
||||
namespace Convention.Symbolization.Internal
|
||||
{
|
||||
|
Reference in New Issue
Block a user