Example #1
0
        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);
        }
Example #2
0
 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;
 }