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<Shop |
Methods
AddItemInfo(ShopItemInfo)
Add the information of a item to the list.
Declaration
public override ShopItemInfo AddItemInfo(ShopItemInfo info)
Parameters
Type | Name | Description |
---|---|---|
Shop |
info | Item information |
Returns
Type | Description |
---|---|
Shop |
Added information |
Overrides
Backup()
Makes a new instance of the list.
Declaration
public override IShopList Backup()
Returns
Type | Description |
---|---|
IShop |
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<Shop |
items | List of items where the item will be added. |
Boolean | RepeatItems | The retrieved item can be repeated in the list. |
Returns
Type | Description |
---|---|
Shop |
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<Shop |
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 |
---|---|---|
Game |
actor | GameActor to modify |
Overrides
OnBuy(ShopItemInfo)
On buy do nothing.
Declaration
public override void OnBuy(ShopItemInfo info)
Parameters
Type | Name | Description |
---|---|---|
Shop |
info | Bought item |
Overrides
RemoveItemInfo(ShopItemInfo)
Remove the item information from the list.
Declaration
public override bool RemoveItemInfo(ShopItemInfo info)
Parameters
Type | Name | Description |
---|---|---|
Shop |
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 |
---|---|---|
Scriptable |
info |
Returns
Type | Description |
---|---|
Boolean |