Class ClothingInventory
Inheritance
System.Object
ClothingInventory
Assembly: Eco.Gameplay.dll
Syntax
public class ClothingInventory : Inventory, IController, IViewController, IHasUniversalID
Constructors
ClothingInventory()
Declaration
public ClothingInventory()
Fields
ClothingChangedEvent
Declaration
public static ThreadSafeAction<User, ClothingInventory> ClothingChangedEvent
Field Value
Properties
SubInventories
Declaration
protected override IEnumerable<Inventory> SubInventories { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Inventory> |
|
Overrides
Methods
Initialize()
Declaration
protected override void Initialize()
Overrides
LoadFromCustomizationData(User, AvatarCustomizationData)
Load clothing from customization data.
Declaration
public void LoadFromCustomizationData(User user, AvatarCustomizationData data)
Parameters
SaveChanges(String, Int32, Dictionary<String, Color>)
Declaration
public void SaveChanges(string slot, int itemTypeId, Dictionary<string, Color> colors)
Parameters
Type |
Name |
Description |
System.String |
slot |
|
System.Int32 |
itemTypeId |
|
System.Collections.Generic.Dictionary<System.String, Color> |
colors |
|
SwapInventories(Player, ClothingInventory)
Swap not hidden clothing between two inventories (empty slots are swapping too)
Declaration
public void SwapInventories(Player player, ClothingInventory anotherInv)
Parameters
TryEquipItem(Player, ItemStack)
Declaration
public void TryEquipItem(Player player, ItemStack itemToEquip)
Parameters
Implements
Extension Methods