Table of Contents

Class ItemAssetCatalog

Namespace
Shard.Gameplay.Core.Items
Assembly
Shard.Gameplay.Core.dll
public sealed class ItemAssetCatalog
Inheritance
ItemAssetCatalog
Inherited Members

Methods

Contains(string?)

public bool Contains(string? itemId)

Parameters

itemId string

Returns

bool

GetItem(string)

public Item GetItem(string itemId)

Parameters

itemId string

Returns

Item

GetMaxStack(string)

public int GetMaxStack(string itemId)

Parameters

itemId string

Returns

int

GetSortKey(string)

public ItemSortKey GetSortKey(string itemId)

Parameters

itemId string

Returns

ItemSortKey

GetUtilityUsable(string)

public bool GetUtilityUsable(string itemId)

Parameters

itemId string

Returns

bool

TryGetArmorSlot(string?, out ItemArmorSlot)

public bool TryGetArmorSlot(string? itemId, out ItemArmorSlot armorSlot)

Parameters

itemId string
armorSlot ItemArmorSlot

Returns

bool

TryGetItem(string?, out Item?)

public bool TryGetItem(string? itemId, out Item? item)

Parameters

itemId string
item Item

Returns

bool

TryGetMaxStack(string?, out int)

public bool TryGetMaxStack(string? itemId, out int maxStack)

Parameters

itemId string
maxStack int

Returns

bool

TryGetSortKey(string?, out ItemSortKey)

public bool TryGetSortKey(string? itemId, out ItemSortKey sortKey)

Parameters

itemId string
sortKey ItemSortKey

Returns

bool

TryGetStackDefaults(string?, out ItemStackDefaults)

public bool TryGetStackDefaults(string? itemId, out ItemStackDefaults defaults)

Parameters

itemId string
defaults ItemStackDefaults

Returns

bool

TryGetUtilityUsable(string?, out bool)

public bool TryGetUtilityUsable(string? itemId, out bool usable)

Parameters

itemId string
usable bool

Returns

bool