Code cleanup.

This commit is contained in:
2023-04-20 19:47:10 +08:00
parent d86da00258
commit 0699bc5614
2 changed files with 4 additions and 3 deletions

View File

@@ -28,10 +28,10 @@ namespace Cryville.Crtr {
public MotionRegistry(Vector init) : this(init, init) { }
public MotionRegistry(Vector init, Vector globalInit) {
m_InitValue = init;
m_GlobalInitValue = globalInit;
if (!init.GetType().Equals(globalInit.GetType())) throw new ArgumentException();
m_Type = init.GetType();
m_InitValue = init;
m_GlobalInitValue = globalInit;
}
}
@@ -127,6 +127,7 @@ namespace Cryville.Crtr {
dest.Id = Id;
Time.CopyTo(dest.Time);
EndTime.CopyTo(dest.EndTime);
dest.Transition = Transition;
Value.CopyTo(dest.Value);
}