public CustomCoordSprite( Sprite sprite, Func<Point2, Size, Point2> coordinateTransformer) { Contract.Requires(sprite != null); Contract.Requires(coordinateTransformer != null); _sprite = sprite; _coordinateTransformer = coordinateTransformer; }
public CopySprite( Sprite originalSprite, IEnumerable<Vector2> offsetVectors) { Contract.Requires(originalSprite != null); Contract.Requires(offsetVectors != null); _sprite = originalSprite; _offsetVectors = offsetVectors; }