public PositionProvider Copy() { PositionProvider p = new PositionProvider() { Location = Location, Direction = Direction, PositionOffset = PositionOffset, RandomMultitude = RandomMultitude, RandomPositionOption = RandomPositionOption, RandomTransforms = RandomTransforms.ToArray(), Degree = Degree, RelativeTo = RelativeTo, RotationFacing = RotationFacing, PositionRefrence = PositionRefrence, RotationRefrence = RotationRefrence, RotationOffset = RotationOffset, RotationOffsetType = RotationOffsetType, RotationOffsetVector = RotationOffsetVector, RotationRandomOffset = RotationRandomOffset, RandomMemory = RandomMemory?.ToList(), RandomTransformMemory = RandomTransformMemory?.ToList(), LastProvidedPosition = LastProvidedPosition, }; return(p); }
public void CopyValues(PositionProvider source) { Location = source.Location; Direction = source.Direction; PositionOffset = source.PositionOffset; RandomMultitude = source.RandomMultitude; RandomPositionOption = source.RandomPositionOption; RandomTransforms = source.RandomTransforms.ToArray(); Degree = source.Degree; RelativeTo = source.RelativeTo; RotationFacing = source.RotationFacing; PositionRefrence = source.PositionRefrence; RotationRefrence = source.RotationRefrence; RotationOffset = source.RotationOffset; RotationOffsetType = source.RotationOffsetType; RotationOffsetVector = source.RotationOffsetVector; RotationRandomOffset = source.RotationRandomOffset; }