Code cleanup.

This commit is contained in:
2023-05-25 14:57:42 +08:00
parent 3fb123ff30
commit 17042b6664

View File

@@ -26,9 +26,6 @@ namespace Cryville.Crtr.Event {
public ContainerState GetChild(int index, Type handlerType) {
return TypedChildren[handlerType][index];
}
public ContainerState GetChild(EventContainer ev) {
return Children[ev];
}
private bool m_active;
public bool Active {
@@ -358,7 +355,7 @@ namespace Cryville.Crtr.Event {
}
else if (ev.Unstamped is EventContainer) {
var cev = (EventContainer)ev.Unstamped;
var ccs = GetChild(cev);
var ccs = Children[cev];
ccs.LogicalActive = true;
UpdateMotions();
if (!cev.IsLong) {
@@ -385,7 +382,7 @@ namespace Cryville.Crtr.Event {
}
else if (nev is EventContainer) {
var cev = (EventContainer)nev;
var ccs = GetChild(cev);
var ccs = Children[cev];
UpdateMotions();
ccs.LogicalActive = false;
}