Table of Contents

Class ItemIconProvider

Namespace
Uncreated.Warfare.Util.Inventory
Assembly
Uncreated.Warfare.dll

Stores information about pre-made font icons for different items or item redirect types.

public class ItemIconProvider
Inheritance
ItemIconProvider
Inherited Members

Remarks

These are hard-coded for now.

Constructors

ItemIconProvider()

public ItemIconProvider()

Methods

GetCharacter(ItemAsset)

public char? GetCharacter(ItemAsset asset)

Parameters

asset ItemAsset

Returns

char?

GetCharacter(Guid)

public char? GetCharacter(Guid guid)

Parameters

guid Guid

Returns

char?

GetCharacter(RedirectType)

public char? GetCharacter(RedirectType type)

Parameters

type RedirectType

Returns

char?

GetIcon(ItemAsset, bool, bool)

public string GetIcon(ItemAsset asset, bool rich = true, bool tmpro = false)

Parameters

asset ItemAsset
rich bool
tmpro bool

Returns

string

GetIcon(Guid, bool, bool)

public string GetIcon(Guid guid, bool rich = true, bool tmpro = false)

Parameters

guid Guid
rich bool
tmpro bool

Returns

string

GetIcon(RedirectType, bool, bool)

public string GetIcon(RedirectType type, bool rich = true, bool tmpro = false)

Parameters

type RedirectType
rich bool
tmpro bool

Returns

string

GetIconOrName(ItemAsset, bool, bool)

public string GetIconOrName(ItemAsset asset, bool rich = true, bool tmpro = false)

Parameters

asset ItemAsset
rich bool
tmpro bool

Returns

string

TryGetIcon(ItemAsset, out string, bool, bool)

public bool TryGetIcon(ItemAsset asset, out string str, bool rich = true, bool tmpro = false)

Parameters

asset ItemAsset
str string
rich bool
tmpro bool

Returns

bool

TryGetIcon(Guid, out string, bool, bool)

public bool TryGetIcon(Guid guid, out string str, bool rich = true, bool tmpro = false)

Parameters

guid Guid
str string
rich bool
tmpro bool

Returns

bool

TryGetIcon(RedirectType, out string, bool, bool)

public bool TryGetIcon(RedirectType type, out string str, bool rich = true, bool tmpro = false)

Parameters

type RedirectType
str string
rich bool
tmpro bool

Returns

bool