Code cleanup.
This commit is contained in:
@@ -95,8 +95,8 @@ namespace Cryville.Crtr.Event {
|
||||
Parent = parent;
|
||||
}
|
||||
|
||||
_rmvpa = new CategorizedPoolAccessor<int, RealtimeMotionValue>(RMVPool);
|
||||
_mcpa = new CategorizedPoolAccessor<int, MotionCache>(MCPool);
|
||||
_rmvpa = new CategorizedPoolAccessor<int, RealtimeMotionValue>(RMVPool.Shared);
|
||||
_mcpa = new CategorizedPoolAccessor<int, MotionCache>(MotionCachePool.Shared);
|
||||
|
||||
Values = new IntKeyedDictionary<RealtimeMotionValue>(ChartPlayer.motionRegistry.Count);
|
||||
CachedValues = new IntKeyedDictionary<MotionCache>(ChartPlayer.motionRegistry.Count);
|
||||
@@ -151,7 +151,7 @@ namespace Cryville.Crtr.Event {
|
||||
return r;
|
||||
}
|
||||
|
||||
public void CopyTo(byte ct, ContainerState dest) {
|
||||
public void CopyTo(ContainerState dest) {
|
||||
dest.m_lActive = m_lActive;
|
||||
dest.m_pActive = m_pActive;
|
||||
dest.m_active = m_active;
|
||||
@@ -174,12 +174,12 @@ namespace Cryville.Crtr.Event {
|
||||
|
||||
foreach (var cev in dest.ActiveChildren) {
|
||||
if (!ActiveChildren.Contains(cev))
|
||||
Children[cev].CopyTo(ct, dest.Children[cev]);
|
||||
Children[cev].CopyTo(dest.Children[cev]);
|
||||
}
|
||||
dest.ActiveChildren.Clear();
|
||||
foreach (var cev in ActiveChildren) {
|
||||
dest.ActiveChildren.Add(cev);
|
||||
Children[cev].CopyTo(ct, dest.Children[cev]);
|
||||
Children[cev].CopyTo(dest.Children[cev]);
|
||||
}
|
||||
|
||||
dest.PlayingMotions.Clear();
|
||||
@@ -221,8 +221,6 @@ namespace Cryville.Crtr.Event {
|
||||
#endregion
|
||||
|
||||
#region Motion
|
||||
internal static RMVPool RMVPool;
|
||||
internal static MotionCachePool MCPool;
|
||||
readonly CategorizedPoolAccessor<int, RealtimeMotionValue> _rmvpa;
|
||||
readonly CategorizedPoolAccessor<int, MotionCache> _mcpa;
|
||||
Dictionary<StampedEvent, RealtimeMotionValue> PlayingMotions = new Dictionary<StampedEvent, RealtimeMotionValue>(4);
|
||||
|
Reference in New Issue
Block a user