Struct PluginPaletteInfo
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
One color-swap range that recolors part of an item, together with a sample of the color it produces, so a plugin can tell two otherwise identical items apart by their dye.
public readonly record struct PluginPaletteInfo : IEquatable<PluginPaletteInfo>
- Implements
- Inherited Members
Constructors
PluginPaletteInfo(uint, byte, byte, byte, byte, byte)
One color-swap range that recolors part of an item, together with a sample of the color it produces, so a plugin can tell two otherwise identical items apart by their dye.
public PluginPaletteInfo(uint PaletteId, byte Offset, byte Length, byte Red, byte Green, byte Blue)
Parameters
PaletteIduintThe color set the swap draws from.
OffsetbyteWhere in the item's color range the swap starts.
LengthbyteHow much of that range the swap covers.
RedbyteRed channel of the color in the middle of the swapped range, 0 to 255.
GreenbyteGreen channel of that sampled color, 0 to 255.
BluebyteBlue channel of that sampled color, 0 to 255.
Properties
Blue
Blue channel of that sampled color, 0 to 255.
public byte Blue { get; init; }
Property Value
Green
Green channel of that sampled color, 0 to 255.
public byte Green { get; init; }
Property Value
Length
How much of that range the swap covers.
public byte Length { get; init; }
Property Value
Offset
Where in the item's color range the swap starts.
public byte Offset { get; init; }
Property Value
PaletteId
The color set the swap draws from.
public uint PaletteId { get; init; }
Property Value
Red
Red channel of the color in the middle of the swapped range, 0 to 255.
public byte Red { get; init; }