private void CopyTo(Step s, int cloneFlags) { s.Clear(); s.enabled_.Value = enabled_.Value; if (!Bits.IsSet(cloneFlags, Utilities.CloneZero)) { s.Duration = Duration?.Clone(cloneFlags); s.Repeat = Repeat.Clone(cloneFlags); s.Delay = Delay.Clone(cloneFlags); } s.halfMove_.Value = halfMove_.Value; foreach (var m in modifiers_) { s.AddModifier(m.Clone(cloneFlags)); } }
private void CopyTo(UnsyncedModifier m, int cloneFlags) { m.Duration = Duration?.Clone(cloneFlags); m.Delay = Delay.Clone(cloneFlags); }