• 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 ScriptableGroupItemList

    A list whose items are in groups, each with a fixed cost and probability that one of its items will be displayed in the store.

    Inheritance
    Object
    IShopList
    ScriptableGroupItemList
    Inherited Members
    IShopList.GetRandomWeightedIndex(Int32[])
    Namespace: AutoBattleFramework.Shop.ShopList
    Assembly: cs.temp.dll.dll
    Syntax
    public class ScriptableGroupItemList : IShopList

    Fields

    GroupItemList

    Group of items.

    Declaration
    public List<ShopItemList> GroupItemList
    Field Value
    Type Description
    List<ShopItemList>

    Methods

    AddItemInfo(ShopItemInfo)

    Add a item information to a group, based on its cost.

    Declaration
    public override ShopItemInfo AddItemInfo(ShopItemInfo info)
    Parameters
    Type Name Description
    ShopItemInfo info

    Information to be added.

    Returns
    Type Description
    ShopItemInfo

    The added info.

    Overrides
    IShopList.AddItemInfo(ShopItemInfo)

    Backup()

    Make a new instance of the list.

    Declaration
    public override IShopList Backup()
    Returns
    Type Description
    IShopList

    New instance of the list.

    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 where the item will be added.

    Boolean RepeatItems

    The retrieved item can be repeated in the list.

    Returns
    Type Description
    ShopItemInfo
    Overrides
    IShopList.Draw(List<ShopItemInfo>, Boolean)

    GetRandomItems(Int32, Boolean)

    Return a number of items to be shown in ShopUI, based on each group probability.

    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>

    List of items retrieved.

    Overrides
    IShopList.GetRandomItems(Int32, Boolean)

    Initialize()

    Each item info is updated with the group information.

    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 its group.

    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)

    Restore a ShopItemInfo that has been bought before. Returns true if successful.

    Declaration
    public override bool RestoreItemInfo(ScriptableShopItem info)
    Parameters
    Type Name Description
    ScriptableShopItem info

    Item to be restored.

    Returns
    Type Description
    Boolean

    True if succesful

    Overrides
    IShopList.RestoreItemInfo(ScriptableShopItem)
    In This Article
    Back to top Auto-Battle Framework documentation