Class SelectionInventory
Inheritance
System.Object
SelectionInventory
Assembly: Eco.Gameplay.dll
Syntax
public class SelectionInventory : LimitedInventory, IController, IViewController, IHasUniversalID
Constructors
SelectionInventory()
Declaration
protected SelectionInventory()
SelectionInventory(Int32)
Declaration
public SelectionInventory(int maxStacks)
Parameters
Type |
Name |
Description |
System.Int32 |
maxStacks |
|
Fields
OnSelectionChanged
Declaration
public ThreadSafeAction OnSelectionChanged
Field Value
Properties
NeedsAuth
Declaration
public override bool NeedsAuth { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
SelectableStacks
Declaration
protected IList<bool> SelectableStacks { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IList<System.Boolean> |
|
SelectedIndex
Declaration
public int SelectedIndex { get; protected set; }
Property Value
Type |
Description |
System.Int32 |
|
SelectedItem
Declaration
public Item SelectedItem { get; }
Property Value
SelectedStack
Declaration
public ItemStack SelectedStack { get; }
Property Value
Methods
Initialize()
Declaration
protected override void Initialize()
Overrides
RefreshSelected(Player)
Declaration
public virtual void RefreshSelected(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
ReselectCurrent(Player)
Declaration
public virtual void ReselectCurrent(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
SelectFirst(Player, Predicate<ItemStack>)
Declaration
public bool SelectFirst(Player player, Predicate<ItemStack> test)
Parameters
Returns
Type |
Description |
System.Boolean |
|
SelectIndex(Player, Int32)
Declaration
public virtual void SelectIndex(Player player, int slot)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.Int32 |
slot |
|
SelectType(Player, Type)
Declaration
public bool SelectType(Player player, Type t)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.Type |
t |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
Extension Methods