Table of Contents

Struct ClothingItem

Namespace
Uncreated.Warfare.Util.Inventory
Assembly
Uncreated.Warfare.dll
public struct ClothingItem
Inherited Members

Constructors

ClothingItem(PlayerClothing?, ClothingType)

public ClothingItem(PlayerClothing? clothing, ClothingType type)

Parameters

clothing PlayerClothing
type ClothingType

ClothingItem(ClothingType)

public ClothingItem(ClothingType type)

Parameters

type ClothingType

Fields

Type

public ClothingType Type

Field Value

ClothingType

Properties

Asset

public readonly ItemAsset? Asset { get; }

Property Value

ItemAsset

Flag

public byte Flag { get; }

Property Value

byte

HasStorage

If this clothing type has storage.

public readonly bool HasStorage { get; }

Property Value

bool

Quality

public readonly byte Quality { get; }

Property Value

byte

State

public readonly byte[] State { get; }

Property Value

byte[]

StoragePage

The page this clothing type is stored in.

public readonly Page StoragePage { get; }

Property Value

Page

Methods

AskWear(ItemAsset?, byte, byte[], bool)

public readonly void AskWear(ItemAsset? asset, byte quality, byte[] state, bool playEffect)

Parameters

asset ItemAsset
quality byte
state byte[]
playEffect bool

ValidAsset(ItemAsset?)

public readonly bool ValidAsset(ItemAsset? asset)

Parameters

asset ItemAsset

Returns

bool