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

    Game item that can be attached to NGO_GameCharacter when dragged over it. This item is designed for multiplayer mode.

    Inheritance
    Object
    NGO_GameItem
    Namespace: AutoBattleFramework.Multiplayer.BattleBehaviour.GameActors
    Assembly: cs.temp.dll.dll
    Syntax
    public class NGO_GameItem : GameItem

    Methods

    AddItemModificator(GameCharacter)

    Equip the item to the character. Then ask the server to despawn the item and update the stats in other clients.

    Declaration
    public override void AddItemModificator(GameCharacter character)
    Parameters
    Type Name Description
    GameCharacter character

    AddLocalItemToCharacter(GameCharacter)

    Locally equips the item to a character. Use only when the information is synchronized with the server.

    Declaration
    public void AddLocalItemToCharacter(GameCharacter character)
    Parameters
    Type Name Description
    GameCharacter character

    Character to which the item is equipped.

    Buy(GameActor)

    Ask the server to instantiate the purchased item.

    Declaration
    public override GameActor Buy(GameActor shopItem)
    Parameters
    Type Name Description
    GameActor shopItem

    GameItem to buy.

    Returns
    Type Description
    GameActor

    null

    GetTeamIndex()

    Get the index of the team to which the item belongs.

    Declaration
    protected override int GetTeamIndex()
    Returns
    Type Description
    Int32

    Index of the team to which the item belongs.

    OnNetworkSpawn()

    When spawned, apply traits, set state, and rotation.

    Declaration
    public override void OnNetworkSpawn()

    SetVariablesOnBuy(GameItem, IPlayer)

    When spawned, set position and rotation.

    Declaration
    protected override void SetVariablesOnBuy(GameItem item, IPlayer player = null)
    Parameters
    Type Name Description
    GameItem item
    IPlayer player

    The owner player instance.

    Start()

    Declaration
    protected override void Start()

    Update()

    Declaration
    protected override void Update()
    In This Article
    Back to top Auto-Battle Framework documentation