Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
essentials.action.ItemFramework.Interactive.SimpleInteractiveInventory Class Reference

Static Public Member Functions

static SimpleInteractiveInventory BindTo (ISelectableInventory inventory, IPlayableEntity player)
 

Protected Member Functions

 SimpleInteractiveInventory (ISelectableInventory inventory, IPlayableEntity player)
 

Constructor & Destructor Documentation

essentials.action.ItemFramework.Interactive.SimpleInteractiveInventory.SimpleInteractiveInventory ( ISelectableInventory  inventory,
IPlayableEntity  player 
)
protected
20  {
21  this.InjectDependencies();
22 
23  _player = player;
24 
25  InventoryHotbar.BindTo(inventory);
26 
27  inventory.SelectedItemChanged += HandleSelectedItemChanged;
28  _scheduler.ScheduleInfiniteWeakTask(this.UpdateDisplay, TimeSpan.FromMilliseconds(50));
29  }
A UI to display a hotbar at the bottom of the screen
Definition: InventoryHotbar.cs:14
ItemEvent SelectedItemChanged
Occurs when selected item changed.
Definition: ISelectableInventory.cs:13
static InventoryHotbar BindTo(IInventory inventory)
Definition: InventoryHotbar.cs:37

Member Function Documentation

static SimpleInteractiveInventory essentials.action.ItemFramework.Interactive.SimpleInteractiveInventory.BindTo ( ISelectableInventory  inventory,
IPlayableEntity  player 
)
static
32  {
33  return new SimpleInteractiveInventory(inventory, player);
34  }
SimpleInteractiveInventory(ISelectableInventory inventory, IPlayableEntity player)
Definition: SimpleInteractiveInventory.cs:19

The documentation for this class was generated from the following file: