ClassicCityBuilderKit 1.8.8
|
interface for classes that hold and manage items, the most common implementation is ItemStorage
SplitItemContainer and MultiItemContainer were created so components with more than one storage can act the same as if they only had one
Public Member Functions | |
void | ReserveCapacity (Item item, int amount) |
void | UnreserveCapacity (Item item, int amount) |
void | ReserveQuantity (Item item, int amount) |
void | UnreserveQuantity (Item item, int amount) |
IEnumerable< Item > | GetItems () |
IEnumerable< ItemQuantity > | GetItemQuantities () |
int | GetItemQuantity () |
int | GetItemQuantity (Item item) |
int | GetItemQuantity (ItemCategory item) |
int | GetItemCapacity () |
int | GetItemCapacity (Item item) |
int | GetItemCapacity (ItemCategory item) |
int | GetItemCapacityRemaining () |
int | GetItemCapacityRemaining (Item item) |
int | GetItemCapacityRemaining (ItemCategory item) |
int | AddItems (Item item, int quantity) |
adds items to that storage up to its capacity, remaining quantity is returned (adding 10 items to a storage that can only fit 4 more will return 6) | |
int | RemoveItems (Item item, int quantity) |
removes items from storage and returns the remaining quantity if not enough items were present (removing 4 items from a store that contains only 3 will return 1) | |
int CityBuilderCore.IItemContainer.AddItems | ( | Item | item, |
int | quantity ) |
adds items to that storage up to its capacity, remaining quantity is returned
(adding 10 items to a storage that can only fit 4 more will return 6)
item | the item to add |
quantity | maximum quantity to add |
Implemented in CityBuilderCore.ItemStorage, CityBuilderCore.MultiItemContainer, and CityBuilderCore.SplitItemContainer.
int CityBuilderCore.IItemContainer.GetItemCapacity | ( | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemCapacity | ( | Item | item | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemCapacity | ( | ItemCategory | item | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemCapacityRemaining | ( | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemCapacityRemaining | ( | Item | item | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemCapacityRemaining | ( | ItemCategory | item | ) |
Implemented in CityBuilderCore.ItemStorage.
IEnumerable< ItemQuantity > CityBuilderCore.IItemContainer.GetItemQuantities | ( | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemQuantity | ( | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemQuantity | ( | Item | item | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.GetItemQuantity | ( | ItemCategory | item | ) |
Implemented in CityBuilderCore.ItemStorage.
IEnumerable< Item > CityBuilderCore.IItemContainer.GetItems | ( | ) |
Implemented in CityBuilderCore.ItemStorage.
int CityBuilderCore.IItemContainer.RemoveItems | ( | Item | item, |
int | quantity ) |
removes items from storage and returns the remaining quantity if not enough items were present
(removing 4 items from a store that contains only 3 will return 1)
item | the item to remove |
quantity | the maximum quantity to remove |
Implemented in CityBuilderCore.ItemStorage, CityBuilderCore.MultiItemContainer, and CityBuilderCore.SplitItemContainer.
void CityBuilderCore.IItemContainer.ReserveCapacity | ( | Item | item, |
int | amount ) |
Implemented in CityBuilderCore.ItemStorage.
void CityBuilderCore.IItemContainer.ReserveQuantity | ( | Item | item, |
int | amount ) |
Implemented in CityBuilderCore.ItemStorage.
void CityBuilderCore.IItemContainer.UnreserveCapacity | ( | Item | item, |
int | amount ) |
Implemented in CityBuilderCore.ItemStorage.
void CityBuilderCore.IItemContainer.UnreserveQuantity | ( | Item | item, |
int | amount ) |
Implemented in CityBuilderCore.ItemStorage.