Table of Contents

Class ConcreteClothingItem

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

Constructors

ConcreteClothingItem()

public ConcreteClothingItem()
public ConcreteClothingItem(ClothingType clothingType, IAssetLink<ItemClothingAsset> item, byte[]? state, byte amount = 255, byte quality = 100)

Parameters

clothingType ClothingType
item IAssetLink<ItemClothingAsset>
state byte[]
amount byte
quality byte

Properties

Amount

public byte Amount { get; init; }

Property Value

byte

ClothingType

public ClothingType ClothingType { get; init; }

Property Value

ClothingType

Item

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

Property Value

IAssetLink<ItemClothingAsset>

Quality

public byte Quality { get; init; }

Property Value

byte

State

public byte[]? State { 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