Code cleanup.
This commit is contained in:
@@ -26,9 +26,6 @@ namespace Cryville.Crtr.Event {
|
|||||||
public ContainerState GetChild(int index, Type handlerType) {
|
public ContainerState GetChild(int index, Type handlerType) {
|
||||||
return TypedChildren[handlerType][index];
|
return TypedChildren[handlerType][index];
|
||||||
}
|
}
|
||||||
public ContainerState GetChild(EventContainer ev) {
|
|
||||||
return Children[ev];
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool m_active;
|
private bool m_active;
|
||||||
public bool Active {
|
public bool Active {
|
||||||
@@ -358,7 +355,7 @@ namespace Cryville.Crtr.Event {
|
|||||||
}
|
}
|
||||||
else if (ev.Unstamped is EventContainer) {
|
else if (ev.Unstamped is EventContainer) {
|
||||||
var cev = (EventContainer)ev.Unstamped;
|
var cev = (EventContainer)ev.Unstamped;
|
||||||
var ccs = GetChild(cev);
|
var ccs = Children[cev];
|
||||||
ccs.LogicalActive = true;
|
ccs.LogicalActive = true;
|
||||||
UpdateMotions();
|
UpdateMotions();
|
||||||
if (!cev.IsLong) {
|
if (!cev.IsLong) {
|
||||||
@@ -385,7 +382,7 @@ namespace Cryville.Crtr.Event {
|
|||||||
}
|
}
|
||||||
else if (nev is EventContainer) {
|
else if (nev is EventContainer) {
|
||||||
var cev = (EventContainer)nev;
|
var cev = (EventContainer)nev;
|
||||||
var ccs = GetChild(cev);
|
var ccs = Children[cev];
|
||||||
UpdateMotions();
|
UpdateMotions();
|
||||||
ccs.LogicalActive = false;
|
ccs.LogicalActive = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user