示例#1
0
        public CustomCoordSprite(
            Sprite sprite, Func<Point2, Size, Point2> coordinateTransformer)
        {
            Contract.Requires(sprite != null);
            Contract.Requires(coordinateTransformer != null);

            _sprite = sprite;
            _coordinateTransformer = coordinateTransformer;
        }
示例#2
0
        public CopySprite(
            Sprite originalSprite, IEnumerable<Vector2> offsetVectors)
        {
            Contract.Requires(originalSprite != null);
            Contract.Requires(offsetVectors != null);

            _sprite = originalSprite;
            _offsetVectors = offsetVectors;
        }