• Manual
  • Scripting API
  • Changelog
  • Contact
Search Results for

    Show / Hide Table of Contents
    • BattleBehaviour
      • BattleBehaviour.Fusion
        • FusionManager
        • GameCharacterFusion
      • Battle
      • BossSize
      • CharacterGroup
      • ScriptableBattlePosition
      • ScriptableBattleStage
      • TeamData
      • BattleBehaviour.Backup
        • BackupState
        • BattleBackup
    • GameActors
      • GameActor
      • GameCharacter
      • GameCharacter.AIState
      • GameItem
    • States
      • BattleState
      • ChangeStageState
      • FightState
      • FightState.LoseCondition
      • FightState.WinCondition
      • PreparationState
      • ResetSceneState
    • Battlefield
      • BattleGrid
      • BattleGrid.GridType
      • Bench
      • GridCell
      • GridCellEffect
      • SellZone
    • BattleUI
      • CharacterEnergyUI
      • CharacterHealthUI
      • CharacterStatsUI
      • DamagePopup
      • ItemDescriptionUI
      • ShopExpBarUI
      • StageUI
      • TraitDescriptionUI
      • TraitListUI
      • TraitListUI.OrderBy
      • TraitStatsUI
      • TraitUI
    • EditorScripts
      • BattleGridEditor
      • BattlePositionEditor
      • BenchEditor
      • GameCharacterEditor
      • NetworkObjectsListEditor
      • NFO_GameCharacterEditor
      • NGO_MenuActions
      • ReadOnlyDrawer
    • Formulas
      • BattleFormulas
      • BattleFormulas.DamageType
    • Movement
      • ApproximateAstarMovement
      • ExactAstarMovement
      • IBattleMovement
      • PathFinding2D
    • Multiplayer
      • BattleBehaviour
        • NetworkObjectList
        • StatsStruct
        • GameActors
          • NGO_GameCharacter
          • NGO_GameItem
        • Player
          • GamePlayer
          • IPlayer
        • States
          • MP_ConnectionState
          • MP_FightState
          • MP_PreparationState
      • ClientTransform
        • ClientNetworkTransform
      • EditorScripts
        • NGO_MenuActions
      • GamingServices
        • GamingServices
          • GamingServices.RelayHostData
          • GamingServices.RelayJoinData
      • UI
        • NetworkManagerUI
    • Shop
      • ScriptableShopItem
      • ShopCharacter
      • ShopGameItem
      • ShopItemInfo
      • ShopLevel
      • ShopLevelManager
      • ShopManager
      • ShopGUI
        • CurrencyUI
        • EquippedItemDescriptionUI
        • ShopItemUI
        • ShopUI
        • SpecialAttackDescriptionUI
        • Timer
      • ShopList
        • IShopList
        • ScriptableDeckList
        • ScriptableGroupItemList
        • ScriptableIndividualItemList
        • ShopItemList
    • Skills
      • ApplyBuffOnHitEffect
      • ApplyDebuffOnHitEffect
      • ArrowEffect
      • BuffEffect
      • BuffEffectInfo
      • FixedDamageOverTimeEffect
      • HealthMeteoriteAllEffect
      • HealthStealEffect
      • IAttackEffect
      • MeleeEffect
      • MeteoriteEffect
      • OnHitEffect
      • Projectile
      • RangedEffect
      • SimpleBuffEffect
      • SwordEffect
      • VariableDamageOverTimeEffect
    • Stats
      • CharacterStats
      • CharacterStats.CharacterStat
      • ItemModificator
      • StatModificator
      • StatsModificator
      • StatsModificator.ModificatorType
      • Trait
      • TraitOption
      • TraitOption.TraitTarget
    • Utility
      • AutoBattleSettings
      • ReadOnlyAttribute
      • UIUtility

    Class ScriptableIndividualItemList

    A list of items, each with its own cost and probability of appearing in the shop.

    Inheritance
    Object
    IShopList
    ScriptableIndividualItemList
    Inherited Members
    IShopList.GetRandomWeightedIndex(Int32[])
    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
    IShopList.AddItemInfo(ShopItemInfo)

    Backup()

    Makes a new instance of the list.

    Declaration
    public override IShopList Backup()
    Returns
    Type Description
    IShopList
    Overrides
    IShopList.Backup()

    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
    IShopList.Draw(List<ShopItemInfo>, Boolean)

    GetRandomItems(Int32, Boolean)

    Return a number of items to be shown in ShopUI, based on each item itemCost.

    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
    IShopList.GetRandomItems(Int32, Boolean)

    Initialize()

    Declaration
    public override void Initialize()
    Overrides
    IShopList.Initialize()

    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
    IShopList.ModifyGameActor(GameActor)

    OnBuy(ShopItemInfo)

    On buy do nothing.

    Declaration
    public override void OnBuy(ShopItemInfo info)
    Parameters
    Type Name Description
    ShopItemInfo info

    Bought item

    Overrides
    IShopList.OnBuy(ShopItemInfo)

    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
    IShopList.RemoveItemInfo(ShopItemInfo)

    RestoreItemInfo(ScriptableShopItem)

    Declaration
    public override bool RestoreItemInfo(ScriptableShopItem info)
    Parameters
    Type Name Description
    ScriptableShopItem info
    Returns
    Type Description
    Boolean
    Overrides
    IShopList.RestoreItemInfo(ScriptableShopItem)
    In This Article
    Back to top Auto-Battle Framework documentation