Closed heytherewill closed 7 months ago
We probably can get away with making the highlight field an init
field:
public readonly OutlineStyle HighlightStyle { get; init; } = OutlineStyle.None;
This way we can just do:
var highlighted = sprite with { HighlightStyle = OutlineStyle.Full }
That's even better TBH. Right now there was a bunch of copy methods down there, so I just copied them. Moving them all to allow the with { }
syntax is a much better idea IMO
Ok! I'll close this for now then. I'll move the other ones to use init in the future.
This adds a copy method that is handy since
CanBeHighlighted
has been removed