Table of Contents

Struct IItemDistributionService.DefaultItemDistributionState

Namespace
Uncreated.Warfare.Util.Inventory
Assembly
Uncreated.Warfare.dll
protected readonly struct IItemDistributionService.DefaultItemDistributionState : IItemDistributionState, IItemClearState
Implements
Inherited Members

Constructors

DefaultItemDistributionState(Team)

public DefaultItemDistributionState(Team team)

Parameters

team Team

Properties

ClearClothes

public bool ClearClothes { get; }

Property Value

bool

Kit

public Kit? Kit { get; }

Property Value

Kit

RequestingTeam

public Team RequestingTeam { get; }

Property Value

Team

Silent

public bool Silent { get; }

Property Value

bool

Methods

OnAddingPreviousItem(in KitItemResolutionResult, byte, byte, byte, Page, Item)

public void OnAddingPreviousItem(in KitItemResolutionResult result, byte x, byte y, byte rot, Page page, Item item)

Parameters

result KitItemResolutionResult
x byte
y byte
rot byte
page Page
item Item

OnDroppingPreviousItem(in KitItemResolutionResult, Vector3, Item)

public void OnDroppingPreviousItem(in KitItemResolutionResult result, Vector3 dropNearbyPosition, Item item)

Parameters

result KitItemResolutionResult
dropNearbyPosition Vector3
item Item

ShouldClearItem(ItemJar, Page, ItemAsset)

public bool ShouldClearItem(ItemJar jar, Page page, ItemAsset item)

Parameters

jar ItemJar
page Page
item ItemAsset

Returns

bool

ShouldClearItem(ClothingType, ItemAsset, byte[], byte)

public bool ShouldClearItem(ClothingType clothingType, ItemAsset clothing, byte[] state, byte quality)

Parameters

clothingType ClothingType
clothing ItemAsset
state byte[]
quality byte

Returns

bool

ShouldGrantItem(IClothingItem, ref KitItemResolutionResult)

public bool ShouldGrantItem(IClothingItem item, ref KitItemResolutionResult resolvedItem)

Parameters

item IClothingItem
resolvedItem KitItemResolutionResult

Returns

bool

ShouldGrantItem(IPageItem, ref KitItemResolutionResult, ref byte, ref byte, ref Page, ref byte)

public bool ShouldGrantItem(IPageItem item, ref KitItemResolutionResult resolvedItem, ref byte x, ref byte y, ref Page page, ref byte rotation)

Parameters

item IPageItem
resolvedItem KitItemResolutionResult
x byte
y byte
page Page
rotation byte

Returns

bool