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

    Represents the effects of an attack, including damage, sound effects and visual effects.

    Inheritance
    Object
    IAttackEffect
    BuffEffect
    MeleeEffect
    RangedEffect
    Namespace: AutoBattleFramework.Skills
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class IAttackEffect : ScriptableObject

    Fields

    ai

    Attacking GameCharacter.

    Declaration
    protected GameCharacter ai
    Field Value
    Type Description
    GameCharacter

    DamageType

    Type of damage of the attack

    Declaration
    public BattleFormulas.DamageType DamageType
    Field Value
    Type Description
    BattleFormulas.DamageType

    DoubleAnimation

    If the attack uses two separated animations. For example, aim with an arrow and shoot.

    Declaration
    public bool DoubleAnimation
    Field Value
    Type Description
    Boolean

    EffectDescription

    Description of the efffect

    Declaration
    public string EffectDescription
    Field Value
    Type Description
    String

    EffectImage

    Image depicting the attack. Used in the description of the character's statistics.

    Declaration
    public Sprite EffectImage
    Field Value
    Type Description
    Sprite

    OnHitEffects

    List of On-Hit Effects associated to the Attack Effect.

    Declaration
    public List<OnHitEffect> OnHitEffects
    Field Value
    Type Description
    List<OnHitEffect>

    Methods

    Attack(GameCharacter, Transform)

    On attack method. For example, a simple melee attack will call the OnHit method, while an ranged effect should spawn a Projectile.

    Declaration
    public abstract void Attack(GameCharacter ai, Transform shootingPoint)
    Parameters
    Type Name Description
    GameCharacter ai

    Attacking GameCharacter

    Transform shootingPoint

    The transform from which the projectile will be launched.

    OnHit(GameCharacter)

    On hit effect. It should call a method that subtracts life from the target, like the ones in BattleFormulas.

    Declaration
    public abstract void OnHit(GameCharacter target)
    Parameters
    Type Name Description
    GameCharacter target

    The target of the character of projectile.

    In This Article
    Back to top Auto-Battle Framework documentation