Class ShopLevelManager
Namespace: AutoBattleFramework.Shop
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class ShopLevelManager
Fields
CurrentExp
Current experience of the shop. When reached the current ExpRequired, the CurrentLevel goes up by one.
Declaration
public int CurrentExp
Field Value
Type | Description |
---|---|
Int32 |
CurrentLevel
Current level of the shop.
Declaration
public int CurrentLevel
Field Value
Type | Description |
---|---|
Int32 |
shopLevels
List of store levels.
Declaration
public List<ShopLevel> shopLevels
Field Value
Type | Description |
---|---|
List<ShopLevel> |
Methods
AddExp(Int32)
Adds experience to the CurrentExp. If ExpRequired is reached, the CurrentLevel goes up by one.
Declaration
public void AddExp(int amount)
Parameters
Type | Name | Description |
---|---|---|
Int32 | amount |
GetCurrentList()
Get the list of the current level.
Declaration
public IShopList GetCurrentList()
Returns
Type | Description |
---|---|
IShopList | List of the current level. |
Initialize()
Initialize all levels in shopLevels.
Declaration
public void Initialize()
SetCurrentList(IShopList)
Set the list of the current level.
Declaration
public void SetCurrentList(IShopList list)
Parameters
Type | Name | Description |
---|---|---|
IShopList | list | List with which the current level will be updated. |
ShopMaxed()
Returns true if the maximum shop level has been reached.
Declaration
public bool ShopMaxed()
Returns
Type | Description |
---|---|
Boolean | If the maximum shop level has been reached. |