Table of Contents

Class PluginMapTile

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

Decoded immutable map tile returned by a host resource provider.

public sealed record PluginMapTile : IEquatable<PluginMapTile>
Inheritance
PluginMapTile
Implements
Inherited Members

Constructors

PluginMapTile(PluginMapTileKey, int, int, ReadOnlyMemory<byte>, string)

Decoded immutable map tile returned by a host resource provider.

public PluginMapTile(PluginMapTileKey Key, int PixelWidth, int PixelHeight, ReadOnlyMemory<byte> Pixels, string PixelFormat = "RGBA8")

Parameters

Key PluginMapTileKey

Which tile this is.

PixelWidth int

The tile's width in pixels.

PixelHeight int

The tile's height in pixels.

Pixels ReadOnlyMemory<byte>

The decoded pixels, row by row from the top.

PixelFormat string

How Pixels is laid out; "RGBA8" is four bytes a pixel.

Properties

Key

Which tile this is.

public PluginMapTileKey Key { get; init; }

Property Value

PluginMapTileKey

PixelFormat

How Pixels is laid out; "RGBA8" is four bytes a pixel.

public string PixelFormat { get; init; }

Property Value

string

PixelHeight

The tile's height in pixels.

public int PixelHeight { get; init; }

Property Value

int

PixelWidth

The tile's width in pixels.

public int PixelWidth { get; init; }

Property Value

int

Pixels

The decoded pixels, row by row from the top.

public ReadOnlyMemory<byte> Pixels { get; init; }

Property Value

ReadOnlyMemory<byte>