Class ScriptableIndividualItemList
A list of items, each with its own cost and probability of appearing in the shop.
Inherited Members
Namespace: AutoBattleFramework.Shop.ShopList
Assembly: cs.temp.dll.dll
Syntax
public class ScriptableIndividualItemList : IShopList
Fields
IndividualShopList
List of items
Declaration
public List<ShopItemInfo> IndividualShopList
Field Value
Type | Description |
---|---|
List<ShopItemInfo> |
Methods
AddItemInfo(ShopItemInfo)
Add the information of a item to the list.
Declaration
public override ShopItemInfo AddItemInfo(ShopItemInfo info)
Parameters
Type | Name | Description |
---|---|---|
ShopItemInfo | info | Item information |
Returns
Type | Description |
---|---|
ShopItemInfo | Added information |
Overrides
Backup()
Makes a new instance of the list.
Declaration
public override IShopList Backup()
Returns
Type | Description |
---|---|
IShopList |
Overrides
Draw(List<ShopItemInfo>, Boolean)
Retrieve a single item from the list and add it to a list.
Declaration
public override ShopItemInfo Draw(List<ShopItemInfo> items, bool RepeatItems)
Parameters
Type | Name | Description |
---|---|---|
List<ShopItemInfo> | items | List of items where the item will be added. |
Boolean | RepeatItems | The retrieved item can be repeated in the list. |
Returns
Type | Description |
---|---|
ShopItemInfo | The retrieved item. |
Overrides
GetRandomItems(Int32, Boolean)
Declaration
public override List<ShopItemInfo> GetRandomItems(int numberOfItems, bool RepeatItems)
Parameters
Type | Name | Description |
---|---|---|
Int32 | numberOfItems | Number of items to retrieve. |
Boolean | RepeatItems | The items retrieved can be repeated. |
Returns
Type | Description |
---|---|
List<ShopItemInfo> |
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
ModifyGameActor(GameActor)
Modify the stats of a GameActor.
Declaration
public override void ModifyGameActor(GameActor actor)
Parameters
Type | Name | Description |
---|---|---|
GameActor | actor | GameActor to modify |
Overrides
OnBuy(ShopItemInfo)
On buy do nothing.
Declaration
public override void OnBuy(ShopItemInfo info)
Parameters
Type | Name | Description |
---|---|---|
ShopItemInfo | info | Bought item |
Overrides
RemoveItemInfo(ShopItemInfo)
Remove the item information from the list.
Declaration
public override bool RemoveItemInfo(ShopItemInfo info)
Parameters
Type | Name | Description |
---|---|---|
ShopItemInfo | info | Information to be removed. |
Returns
Type | Description |
---|---|
Boolean | If item has been removed. |
Overrides
RestoreItemInfo(ScriptableShopItem)
Declaration
public override bool RestoreItemInfo(ScriptableShopItem info)
Parameters
Type | Name | Description |
---|---|---|
ScriptableShopItem | info |
Returns
Type | Description |
---|---|
Boolean |