Class VoidStorageManager
Inheritance
System.Object
VoidStorageManager
Namespace: Eco.Gameplay.Items.InventoryRelated
Assembly: Eco.Gameplay.dll
Syntax
public class VoidStorageManager : Object, IController, IViewController, IHasUniversalID
Constructors
VoidStorageManager()
Declaration
public VoidStorageManager()
Fields
VoidStorages
Declaration
public ControllerList<VoidStorageWrapper> VoidStorages
Field Value
Type | Description |
---|---|
ControllerList<VoidStorageWrapper> |
Properties
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
AccessibleVoidStorages(Player)
Declaration
public IEnumerable<VoidStorageWrapper> AccessibleVoidStorages(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<VoidStorageWrapper> |
FillNewVoidStorage(IEnumerable<ItemStack>, LocString, User, Vector3i, String, Single, Single)
Makes and lock a new void storage with a given inventory.
Declaration
public void FillNewVoidStorage(IEnumerable<ItemStack> stacks, LocString name, User user, Vector3i position, string icon = "slgicon", float maxXZDistance = 10F, float maxYDistance = 5F)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ItemStack> | stacks | Item stacks to fill the new void storage with. |
LocString | name | Name of the new void storage. |
User | user | User the void storage belongs to. |
Vector3i | position | Position of the new void storage. |
System.String | icon | Icon to give the new void storage. |
System.Single | maxXZDistance | |
System.Single | maxYDistance |
FillNewVoidStorage(IEnumerable<Type>, LocString, User, Vector3i, String, Single, Single)
Makes and lock a new void storage with a given inventory.
Declaration
public void FillNewVoidStorage(IEnumerable<Type> items, LocString name, User user, Vector3i position, string icon = "slgicon", float maxXZDistance = 10F, float maxYDistance = 5F)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Type> | items | Items to fill with the new void storage with. |
LocString | name | Name of the new void storage. |
User | user | User the void storage belongs to. |
Vector3i | position | Position of the new void storage. |
System.String | icon | Icon to give the new void storage. |
System.Single | maxXZDistance | |
System.Single | maxYDistance |
MakeNewVoidStorage(LocString, User, Vector3i, Single, Single, String)
Makes a new void storage. We can leave it locked (only mergeitem can be called) or unlocked (needs to be locked after initial add).
Declaration
public VoidStorageWrapper MakeNewVoidStorage(LocString name, User user, Vector3i position, float maxXZDistance = 10F, float maxYDistance = 5F, string icon = "slgicon")
Parameters
Type | Name | Description |
---|---|---|
LocString | name | |
User | user | |
Vector3i | position | |
System.Single | maxXZDistance | |
System.Single | maxYDistance | |
System.String | icon |
Returns
Type | Description |
---|---|
VoidStorageWrapper | Wrapper for the requested void storage. |