Table of Contents

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

PaletteId uint

The color set the swap draws from.

Offset byte

Where in the item's color range the swap starts.

Length byte

How much of that range the swap covers.

Red byte

Red channel of the color in the middle of the swapped range, 0 to 255.

Green byte

Green channel of that sampled color, 0 to 255.

Blue byte

Blue 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

byte

Green

Green channel of that sampled color, 0 to 255.

public byte Green { get; init; }

Property Value

byte

Length

How much of that range the swap covers.

public byte Length { get; init; }

Property Value

byte

Offset

Where in the item's color range the swap starts.

public byte Offset { get; init; }

Property Value

byte

PaletteId

The color set the swap draws from.

public uint PaletteId { get; init; }

Property Value

uint

Red

Red channel of the color in the middle of the swapped range, 0 to 255.

public byte Red { get; init; }

Property Value

byte