Table of Contents

Class KitItemUtility

Namespace
Uncreated.Warfare.Kits.Items
Assembly
Uncreated.Warfare.dll
public static class KitItemUtility
Inheritance
KitItemUtility
Inherited Members

Methods

CanBindHotkeyTo(ItemAsset, Page)

Checks if an item with the given asset in the given page can have a hotkey binded to it.

public static bool CanBindHotkeyTo(ItemAsset asset, Page page)

Parameters

asset ItemAsset
page Page

Returns

bool

CreateKitItem(IItem, uint, uint)

Create a kit item from an IItem instance.

public static IKitItem CreateKitItem(IItem item, uint pk, uint kitId)

Parameters

item IItem
pk uint
kitId uint

Returns

IKitItem

CreateKitItemModel(IItem, KitItemModel)

Create a KitItemModel from an IItem instance.

public static void CreateKitItemModel(IItem item, KitItemModel model)

Parameters

item IItem
model KitItemModel

GetHotkeyIndex(byte)

Get the hotkey index of a slot number.

public static byte GetHotkeyIndex(byte slot)

Parameters

slot byte

The slot number, as in which key you would press to activate the hotkey.

Returns

byte

An index 0-7.

ReadItem(IConfiguration)

Read an item from a configuration file.

public static IItem? ReadItem(IConfiguration section)

Parameters

section IConfiguration

Returns

IItem

ValidSlot(byte)

Checks if a slot can be binded as a hotkey. Valid slots are 3-9 and 0.

public static bool ValidSlot(byte slot)

Parameters

slot byte

The slot number, as in which key you would press to activate the hotkey.

Returns

bool