public ImageAndColor( UnsettableColor color, UnsettableSprite image, UnsettableImageType type) { _color = color ?? new UnsettableColor(); _image = image ?? new UnsettableSprite(); _type = type ?? new UnsettableImageType(); }
public ImageAndColor(ImageAndColor source) { Assert.IsNotNull(source); _color = source.Color; _image = source.Image; _type = source.Type; }
public ImageAndColor WithType(UnsettableImageType type) => new ImageAndColor(Color, Image, type);
public ImageAndColor() { _color = new UnsettableColor(); _image = new UnsettableSprite(); _type = new UnsettableImageType(); }