Class KitItemUtility
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
assetItemAssetpagePage
Returns
CreateKitItem(IItem, uint, uint)
Create a kit item from an IItem instance.
public static IKitItem CreateKitItem(IItem item, uint pk, uint kitId)
Parameters
Returns
CreateKitItemModel(IItem, KitItemModel)
Create a KitItemModel from an IItem instance.
public static void CreateKitItemModel(IItem item, KitItemModel model)
Parameters
itemIItemmodelKitItemModel
GetHotkeyIndex(byte)
Get the hotkey index of a slot number.
public static byte GetHotkeyIndex(byte slot)
Parameters
slotbyteThe 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
sectionIConfiguration
Returns
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
slotbyteThe slot number, as in which key you would press to activate the hotkey.