Exemplo n.º 1
0
 public ImageAndColor(
     UnsettableColor color, UnsettableSprite image, UnsettableImageType type)
 {
     _color = color ?? new UnsettableColor();
     _image = image ?? new UnsettableSprite();
     _type  = type ?? new UnsettableImageType();
 }
Exemplo n.º 2
0
        public ImageAndColor(ImageAndColor source)
        {
            Assert.IsNotNull(source);

            _color = source.Color;
            _image = source.Image;
            _type  = source.Type;
        }
Exemplo n.º 3
0
 public ImageAndColor WithType(UnsettableImageType type) => new ImageAndColor(Color, Image, type);
Exemplo n.º 4
0
 public ImageAndColor()
 {
     _color = new UnsettableColor();
     _image = new UnsettableSprite();
     _type  = new UnsettableImageType();
 }