Class ConcreteClothingItem
public class ConcreteClothingItem : IConcreteItem, IClothingItem, IItem, IEquatable<IItem>, ITranslationArgument
- Inheritance
-
ConcreteClothingItem
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ConcreteClothingItem()
public ConcreteClothingItem()
ConcreteClothingItem(ClothingType, IAssetLink<ItemClothingAsset>, byte[]?, byte, byte)
public ConcreteClothingItem(ClothingType clothingType, IAssetLink<ItemClothingAsset> item, byte[]? state, byte amount = 255, byte quality = 100)
Parameters
clothingTypeClothingTypeitemIAssetLink<ItemClothingAsset>statebyte[]amountbytequalitybyte
Properties
Amount
public byte Amount { get; init; }
Property Value
ClothingType
public ClothingType ClothingType { get; init; }
Property Value
Item
public IAssetLink<ItemClothingAsset> Item { get; init; }
Property Value
- IAssetLink<ItemClothingAsset>
Quality
public byte Quality { get; init; }
Property Value
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
objobjectThe object to compare with the current object.
Returns
Equals(IItem?)
Indicates whether the current object is equal to another object of the same type.
public virtual bool Equals(IItem? other)
Parameters
otherIItemAn object to compare with this object.
Returns
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
formatterITranslationValueFormatterparametersValueFormatParameters