Table of Contents

Class ConcretePageItem

Namespace
Uncreated.Warfare.Util.Inventory
Assembly
Uncreated.Warfare.dll
public class ConcretePageItem : IConcreteItem, IPageItem, IItem, IEquatable<IItem>, ITranslationArgument
Inheritance
ConcretePageItem
Implements
Derived
Inherited Members
Extension Methods

Constructors

ConcretePageItem()

public ConcretePageItem()
public ConcretePageItem(byte x, byte y, Page page, byte rotation, IAssetLink<ItemAsset> item, byte[]? state, byte amount = 255, byte quality = 100)

Parameters

x byte
y byte
page Page
rotation byte
item IAssetLink<ItemAsset>
state byte[]
amount byte
quality byte

Properties

Amount

public byte Amount { get; init; }

Property Value

byte

Item

public IAssetLink<ItemAsset> Item { get; init; }

Property Value

IAssetLink<ItemAsset>

Page

public Page Page { get; init; }

Property Value

Page

Quality

public byte Quality { get; init; }

Property Value

byte

Rotation

public byte Rotation { get; init; }

Property Value

byte

State

public byte[]? State { get; init; }

Property Value

byte[]

X

public byte X { get; init; }

Property Value

byte

Y

public byte Y { get; init; }

Property Value

byte

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(IItem?)

Indicates whether the current object is equal to another object of the same type.

public virtual bool Equals(IItem? other)

Parameters

other IItem

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Translate(ITranslationValueFormatter, in ValueFormatParameters)

Allows objects to define how they're translated in their own definition instead of creating a value converter.

public string Translate(ITranslationValueFormatter formatter, in ValueFormatParameters parameters)

Parameters

formatter ITranslationValueFormatter
parameters ValueFormatParameters

Returns

string