Skip to content

Commit

Permalink
feat: add AdjustedTotalCastTime to BattleChara
Browse files Browse the repository at this point in the history
  • Loading branch information
Aireil authored Mar 4, 2024
1 parent 5f62c70 commit 4dc8fde
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dalamud/Game/ClientState/Objects/Types/BattleChara.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;

using Dalamud.Game.ClientState.Statuses;
using Dalamud.Utility;

namespace Dalamud.Game.ClientState.Objects.Types;

Expand Down Expand Up @@ -57,8 +58,22 @@ internal BattleChara(IntPtr address)
/// <summary>
/// Gets the total casting time of the spell being cast by the chara.
/// </summary>
/// <remarks>
/// This can only be a portion of the total cast for some actions.
/// Use AdjustedTotalCastTime if you always need the total cast time.
/// </remarks>
[Api10ToDo("Rename so it is not confused with AdjustedTotalCastTime")]
public float TotalCastTime => this.Struct->GetCastInfo->TotalCastTime;

/// <summary>
/// Gets the adjusted total casting time of the spell being cast by the chara.
/// </summary>
/// <remarks>
/// This is the actual total cast time for all actions.
/// </remarks>
[Api10ToDo("Rename so it is not confused with TotalCastTime")]
public float AdjustedTotalCastTime => this.Struct->GetCastInfo->AdjustedTotalCastTime;

/// <summary>
/// Gets the underlying structure.
/// </summary>
Expand Down

0 comments on commit 4dc8fde

Please sign in to comment.