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

    Mimics the behavior of a deck of cards. You have the main deck, the discarded cards and the cards in hand.

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

    Fields

    CardsInHand

    Cards currently in hand (shown in the store interface).

    Declaration
    public List<ShopItemInfo> CardsInHand
    Field Value
    Type Description
    List<ShopItemInfo>

    DeckList

    Cards currently in the deck.

    Declaration
    public List<ShopItemInfo> DeckList
    Field Value
    Type Description
    List<ShopItemInfo>

    DiscardList

    Cards that have been played or discarded.

    Declaration
    public List<ShopItemInfo> DiscardList
    Field Value
    Type Description
    List<ShopItemInfo>

    RemovedItems

    Cards removed from the deck.

    Declaration
    public List<ShopItemInfo> RemovedItems
    Field Value
    Type Description
    List<ShopItemInfo>

    Methods

    AddItemInfo(ShopItemInfo)

    Adds a card to the deck

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

    Card to be added

    Returns
    Type Description
    ShopItemInfo

    The added card

    Overrides
    IShopList.AddItemInfo(ShopItemInfo)

    Backup()

    Makes a backup of the deck. Prevents the ScriptableObject from being overwritten.

    Declaration
    public override IShopList Backup()
    Returns
    Type Description
    IShopList

    Backed deck.

    Overrides
    IShopList.Backup()

    Draw(List<ShopItemInfo>, Boolean)

    Draw a card from the deck. 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 card will be added.

    Boolean RepeatItems

    Not used in this case.

    Returns
    Type Description
    ShopItemInfo

    Drawn card.

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

    GetRandomItems(Int32, Boolean)

    Discards all cards in hand and draws a number of cards from the deck.

    Declaration
    public override List<ShopItemInfo> GetRandomItems(int numberOfItems, bool RepeatItems)
    Parameters
    Type Name Description
    Int32 numberOfItems

    Number of cards to be drawn.

    Boolean RepeatItems

    In this case it is not used.

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

    Initialize()

    Initializes all variables.

    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)

    When the card is bought, the card is discarded.

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

    Bought card.

    Overrides
    IShopList.OnBuy(ShopItemInfo)

    RemoveItemInfo(ShopItemInfo)

    Remove a card from the deck.

    Declaration
    public override bool RemoveItemInfo(ShopItemInfo info)
    Parameters
    Type Name Description
    ShopItemInfo info

    Card to be removed

    Returns
    Type Description
    Boolean

    If card removal has been successful

    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)

    Shuffle(List<ShopItemInfo>)

    Shuffle a list of cards

    Declaration
    public void Shuffle(List<ShopItemInfo> list)
    Parameters
    Type Name Description
    List<ShopItemInfo> list

    Cards to be shuffled

    In This Article
    Back to top Auto-Battle Framework documentation