mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 14:57:45 +01:00
bump cs, fix warnings
This commit is contained in:
parent
d3bd5f1dce
commit
ff36f08d0c
12 changed files with 27 additions and 24 deletions
|
|
@ -97,7 +97,7 @@ internal sealed class AetheryteEntry : IAetheryteEntry
|
|||
public uint GilCost => this.data.GilCost;
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsFavourite => this.data.IsFavourite != 0;
|
||||
public bool IsFavourite => this.data.IsFavourite;
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsSharedHouse => this.data.IsSharedHouse;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,8 @@ public enum ConditionFlag
|
|||
/// </summary>
|
||||
RidingPillion = 10,
|
||||
|
||||
[Obsolete("Renamed to RidingPillion", true)] Mounted2 = 10,
|
||||
[Obsolete("Renamed to RidingPillion", true)]
|
||||
Mounted2 = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Unable to execute command while in that position.
|
||||
|
|
@ -429,7 +430,8 @@ public enum ConditionFlag
|
|||
/// </summary>
|
||||
MountImmobile = 88,
|
||||
|
||||
[Obsolete("Renamed to MountImmobile", true)] InThisState88 = 88,
|
||||
[Obsolete("Renamed to MountImmobile", true)]
|
||||
InThisState88 = 88,
|
||||
|
||||
/// <summary>
|
||||
/// Unable to execute command in this state.
|
||||
|
|
|
|||
|
|
@ -77,10 +77,10 @@ internal unsafe class BattleChara : Character, IBattleChara
|
|||
public StatusList StatusList => new(this.Struct->GetStatusManager());
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsCasting => this.Struct->GetCastInfo()->IsCasting > 0;
|
||||
public bool IsCasting => this.Struct->GetCastInfo()->IsCasting;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsCastInterruptible => this.Struct->GetCastInfo()->Interruptible > 0;
|
||||
public bool IsCastInterruptible => this.Struct->GetCastInfo()->Interruptible;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public byte CastActionType => (byte)this.Struct->GetCastInfo()->ActionType;
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ internal unsafe class PartyMember : IPartyMember
|
|||
/// <summary>
|
||||
/// Gets the position of the party member.
|
||||
/// </summary>
|
||||
public Vector3 Position => new(this.Struct->X, this.Struct->Y, this.Struct->Z);
|
||||
public Vector3 Position => this.Struct->Position;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the content ID of the party member.
|
||||
|
|
|
|||
|
|
@ -451,14 +451,14 @@ internal sealed unsafe class ContextMenu : IInternalDisposableService, IContextM
|
|||
case ContextMenuType.Default:
|
||||
{
|
||||
var ownerAddonId = ((AgentContext*)this.SelectedAgent)->OwnerAddon;
|
||||
module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, this.SelectedAgent, 71, checked((ushort)ownerAddonId), 4);
|
||||
module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, &this.SelectedAgent->AtkEventInterface, 71, checked((ushort)ownerAddonId), 4);
|
||||
break;
|
||||
}
|
||||
|
||||
case ContextMenuType.Inventory:
|
||||
{
|
||||
var ownerAddonId = ((AgentInventoryContext*)this.SelectedAgent)->OwnerAddonId;
|
||||
module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, this.SelectedAgent, 0, checked((ushort)ownerAddonId), 4);
|
||||
module->OpenAddon(this.AddonContextSubNameId, (uint)valueCount, values, &this.SelectedAgent->AtkEventInterface, 0, checked((ushort)ownerAddonId), 4);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui
|
|||
return ret;
|
||||
}
|
||||
|
||||
private void HandleActionHoverDetour(AgentActionDetail* hoverState, FFXIVClientStructs.FFXIV.Client.UI.Agent.ActionKind actionKind, uint actionId, int a4, byte a5)
|
||||
private void HandleActionHoverDetour(AgentActionDetail* hoverState, FFXIVClientStructs.FFXIV.Client.UI.Agent.ActionKind actionKind, uint actionId, int a4, bool a5)
|
||||
{
|
||||
this.handleActionHoverHook.Original(hoverState, actionKind, actionId, a4, a5);
|
||||
this.HoveredAction.ActionKind = (HoverActionKind)actionKind;
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService
|
|||
if (uploaderId == 0)
|
||||
{
|
||||
var playerState = PlayerState.Instance();
|
||||
if (playerState->IsLoaded == 1)
|
||||
if (playerState->IsLoaded)
|
||||
{
|
||||
uploaderId = playerState->ContentId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ using System.Linq;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
|
||||
using Iced.Intel;
|
||||
using Newtonsoft.Json;
|
||||
using Serilog;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue