Code cleanup.

This commit is contained in:
2023-02-18 14:46:08 +08:00
parent 274a823d02
commit a1f7418d32
10 changed files with 78 additions and 66 deletions

View File

@@ -63,8 +63,8 @@ namespace Cryville.Crtr.Event {
s = RootState;
}
AddState(s);
foreach (var c in s.Children.Values)
Expand(c);
foreach (var c in s.Children)
Expand(c.Value);
}
public void AddState(ContainerState s) {
@@ -73,13 +73,13 @@ namespace Cryville.Crtr.Event {
}
void AttachBus() {
foreach (var s in states.Values)
s.Bus = this;
foreach (var s in states)
s.Value.Bus = this;
}
public void AttachSystems(PdtSkin skin, Judge judge) {
foreach (var s in states.Values)
s.AttachSystems(skin, judge);
foreach (var s in states)
s.Value.AttachSystems(skin, judge);
}
List<StampedEvent.Temporary> tempEvents = new List<StampedEvent.Temporary>();