ColourOperand

References
public readonly struct ColourOperand
Either a literal colour or a reference to a colour property; the second operand of a mix.

Properties

IsReference

#
public bool IsReference { get; }

Literal

#
public Colour Literal { get; }

Property

#
public PropertyId Property { get; }

Methods

Constant

#
public static ColourOperand Constant(Colour colour)
colour (Colour)

Reference

#
public static ColourOperand Reference(PropertyId property)
property (PropertyId)

Resolve

#
public Colour Resolve(Func<PropertyId, SkinValue> resolve)
resolve (Func<PropertyId, SkinValue>)

ToText

#
public string ToText()

TryParse

#
public static bool TryParse(string text, out ColourOperand operand)
text (string)
operand (out ColourOperand)