mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Rename namespace PlayerState to Player
This commit is contained in:
parent
2cf869872d
commit
64d4f7061a
16 changed files with 34 additions and 22 deletions
|
|
@ -2,11 +2,13 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.IoC;
|
||||
using Dalamud.IoC.Internal;
|
||||
using Dalamud.Plugin.Services;
|
||||
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||
using CSBuddy = FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy;
|
||||
using CSUIState = FFXIVClientStructs.FFXIV.Client.Game.UI.UIState;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Buddy;
|
||||
|
||||
|
|
@ -24,7 +26,7 @@ internal sealed partial class BuddyList : IServiceType, IBuddyList
|
|||
private const uint InvalidObjectID = 0xE0000000;
|
||||
|
||||
[ServiceManager.ServiceDependency]
|
||||
private readonly PlayerState.PlayerState playerState = Service<PlayerState.PlayerState>.Get();
|
||||
private readonly PlayerState playerState = Service<PlayerState>.Get();
|
||||
|
||||
[ServiceManager.ServiceConstructor]
|
||||
private BuddyList()
|
||||
|
|
@ -69,7 +71,7 @@ internal sealed partial class BuddyList : IServiceType, IBuddyList
|
|||
}
|
||||
}
|
||||
|
||||
private unsafe FFXIVClientStructs.FFXIV.Client.Game.UI.Buddy* BuddyListStruct => &UIState.Instance()->Buddy;
|
||||
private unsafe CSBuddy* BuddyListStruct => &CSUIState.Instance()->Buddy;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public IBuddyMember? this[int index]
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ using Dalamud.Game.ClientState.Objects;
|
|||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.Gui;
|
||||
using Dalamud.Game.Network.Internal;
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.IoC;
|
||||
using Dalamud.IoC.Internal;
|
||||
|
|
@ -15,7 +16,6 @@ using Dalamud.Utility;
|
|||
|
||||
using FFXIVClientStructs.FFXIV.Application.Network;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||
using FFXIVClientStructs.FFXIV.Client.Network;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||
|
|
@ -23,6 +23,7 @@ using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
|||
using Lumina.Excel.Sheets;
|
||||
|
||||
using Action = System.Action;
|
||||
using CSUIState = FFXIVClientStructs.FFXIV.Client.Game.UI.UIState;
|
||||
|
||||
namespace Dalamud.Game.ClientState;
|
||||
|
||||
|
|
@ -47,7 +48,7 @@ internal sealed class ClientState : IInternalDisposableService, IClientState
|
|||
private readonly NetworkHandlers networkHandlers = Service<NetworkHandlers>.Get();
|
||||
|
||||
[ServiceManager.ServiceDependency]
|
||||
private readonly PlayerState.PlayerState playerState = Service<PlayerState.PlayerState>.Get();
|
||||
private readonly PlayerState playerState = Service<PlayerState>.Get();
|
||||
|
||||
[ServiceManager.ServiceDependency]
|
||||
private readonly ObjectTable objectTable = Service<ObjectTable>.Get();
|
||||
|
|
@ -285,7 +286,7 @@ internal sealed class ClientState : IInternalDisposableService, IClientState
|
|||
|
||||
this.TerritoryType = (ushort)GameMain.Instance()->CurrentTerritoryTypeId;
|
||||
this.MapId = AgentMap.Instance()->CurrentMapId;
|
||||
this.Instance = UIState.Instance()->PublicInstance.InstanceId;
|
||||
this.Instance = CSUIState.Instance()->PublicInstance.InstanceId;
|
||||
|
||||
this.initialized = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.Numerics;
|
||||
|
||||
using Dalamud.Data;
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Memory;
|
||||
|
||||
|
|
@ -153,7 +154,7 @@ internal unsafe partial class Fate
|
|||
if (fate == null)
|
||||
return false;
|
||||
|
||||
var playerState = Service<PlayerState.PlayerState>.Get();
|
||||
var playerState = Service<PlayerState>.Get();
|
||||
return playerState.IsLoaded == true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.IoC;
|
||||
using Dalamud.IoC.Internal;
|
||||
using Dalamud.Plugin.Services;
|
||||
|
|
@ -63,7 +64,7 @@ internal sealed partial class FateTable : IServiceType, IFateTable
|
|||
if (fate == null)
|
||||
return false;
|
||||
|
||||
var playerState = Service<PlayerState.PlayerState>.Get();
|
||||
var playerState = Service<PlayerState>.Get();
|
||||
return playerState.IsLoaded == true;
|
||||
}
|
||||
|
||||
|
|
@ -86,7 +87,7 @@ internal sealed partial class FateTable : IServiceType, IFateTable
|
|||
if (offset == IntPtr.Zero)
|
||||
return null;
|
||||
|
||||
var playerState = Service<PlayerState.PlayerState>.Get();
|
||||
var playerState = Service<PlayerState>.Get();
|
||||
if (!playerState.IsLoaded)
|
||||
return null;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using System.Runtime.CompilerServices;
|
|||
using Dalamud.Game.ClientState.Objects.Enums;
|
||||
using Dalamud.Game.ClientState.Objects.SubKinds;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.IoC;
|
||||
using Dalamud.IoC.Internal;
|
||||
using Dalamud.Plugin.Services;
|
||||
|
|
@ -32,7 +33,7 @@ internal sealed partial class ObjectTable : IServiceType, IObjectTable
|
|||
private static int objectTableLength;
|
||||
|
||||
[ServiceManager.ServiceDependency]
|
||||
private readonly PlayerState.PlayerState playerState = Service<PlayerState.PlayerState>.Get();
|
||||
private readonly PlayerState playerState = Service<PlayerState>.Get();
|
||||
|
||||
private readonly CachedEntry[] cachedObjectTable;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.Numerics;
|
||||
|
||||
using Dalamud.Game.ClientState.Objects.Enums;
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Objects.Types;
|
||||
|
|
@ -171,7 +172,7 @@ internal partial class GameObject
|
|||
if (actor == null)
|
||||
return false;
|
||||
|
||||
var playerState = Service<PlayerState.PlayerState>.Get();
|
||||
var playerState = Service<PlayerState>.Get();
|
||||
return playerState.IsLoaded == true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.IoC;
|
||||
using Dalamud.IoC.Internal;
|
||||
using Dalamud.Plugin.Services;
|
||||
|
|
@ -25,7 +26,7 @@ internal sealed unsafe partial class PartyList : IServiceType, IPartyList
|
|||
private const int AllianceLength = 20;
|
||||
|
||||
[ServiceManager.ServiceDependency]
|
||||
private readonly PlayerState.PlayerState playerState = Service<PlayerState.PlayerState>.Get();
|
||||
private readonly PlayerState playerState = Service<PlayerState>.Get();
|
||||
|
||||
[ServiceManager.ServiceConstructor]
|
||||
private PartyList()
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ using System.Collections.Generic;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Dalamud.Game.Player;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Statuses;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -72,7 +74,7 @@ public sealed unsafe partial class StatusList
|
|||
// The use case for CreateStatusListReference and CreateStatusReference to be static is so
|
||||
// fake status lists can be generated. Since they aren't exposed as services, it's either
|
||||
// here or somewhere else.
|
||||
var playerState = Service<PlayerState.PlayerState>.Get();
|
||||
var playerState = Service<PlayerState>.Get();
|
||||
if (!playerState.IsLoaded)
|
||||
return null;
|
||||
|
||||
|
|
@ -89,7 +91,7 @@ public sealed unsafe partial class StatusList
|
|||
if (address == IntPtr.Zero)
|
||||
return null;
|
||||
|
||||
var playerState = Service<PlayerState.PlayerState>.Get();
|
||||
var playerState = Service<PlayerState>.Get();
|
||||
if (!playerState.IsLoaded)
|
||||
return null;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ using Dalamud.Game.Gui;
|
|||
using Dalamud.Game.Network.Internal.MarketBoardUploaders;
|
||||
using Dalamud.Game.Network.Internal.MarketBoardUploaders.Universalis;
|
||||
using Dalamud.Game.Network.Structures;
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Networking.Http;
|
||||
|
|
@ -268,7 +269,7 @@ internal unsafe class NetworkHandlers : IInternalDisposableService
|
|||
|
||||
private static (ulong UploaderId, uint WorldId) GetUploaderInfo()
|
||||
{
|
||||
var playerState = Service<PlayerState.PlayerState>.Get();
|
||||
var playerState = Service<PlayerState>.Get();
|
||||
return (playerState.ContentId, playerState.CurrentWorld.RowId);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Dalamud.Game.PlayerState;
|
||||
namespace Dalamud.Game.Player;
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the mentor certification version for a player.
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Dalamud.Game.PlayerState;
|
||||
namespace Dalamud.Game.Player;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a player's attribute.
|
||||
|
|
@ -13,7 +13,7 @@ using Lumina.Excel.Sheets;
|
|||
using CSPlayerState = FFXIVClientStructs.FFXIV.Client.Game.UI.PlayerState;
|
||||
using GrandCompany = Lumina.Excel.Sheets.GrandCompany;
|
||||
|
||||
namespace Dalamud.Game.PlayerState;
|
||||
namespace Dalamud.Game.Player;
|
||||
|
||||
/// <summary>
|
||||
/// This class contains the PlayerState wrappers.
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace Dalamud.Game.PlayerState;
|
||||
namespace Dalamud.Game.Player;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the sex of a character.
|
||||
|
|
@ -8,6 +8,7 @@ using Dalamud.Configuration.Internal;
|
|||
using Dalamud.Data;
|
||||
using Dalamud.Game.ClientState.Objects.Enums;
|
||||
using Dalamud.Game.Config;
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.Game.Text.Evaluator.Internal;
|
||||
using Dalamud.Game.Text.Noun;
|
||||
using Dalamud.Game.Text.Noun.Enums;
|
||||
|
|
@ -68,7 +69,7 @@ internal class SeStringEvaluator : IServiceType, ISeStringEvaluator
|
|||
private readonly SheetRedirectResolver sheetRedirectResolver = Service<SheetRedirectResolver>.Get();
|
||||
|
||||
[ServiceManager.ServiceDependency]
|
||||
private readonly PlayerState.PlayerState playerState = Service<PlayerState.PlayerState>.Get();
|
||||
private readonly PlayerState playerState = Service<PlayerState>.Get();
|
||||
|
||||
private readonly ConcurrentDictionary<StringCacheKey<ActionKind>, string> actStrCache = [];
|
||||
private readonly ConcurrentDictionary<StringCacheKey<ObjectKind>, string> objStrCache = [];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using Dalamud.Bindings.ImGui;
|
|||
using Dalamud.Game.ClientState;
|
||||
using Dalamud.Game.ClientState.Objects;
|
||||
using Dalamud.Game.Gui;
|
||||
using Dalamud.Game.PlayerState;
|
||||
using Dalamud.Game.Player;
|
||||
using Dalamud.Utility;
|
||||
|
||||
namespace Dalamud.Interface.Internal.Windows.Data.Widgets;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using Dalamud.Game.PlayerState;
|
||||
using Dalamud.Game.Player;
|
||||
|
||||
using Lumina.Excel;
|
||||
using Lumina.Excel.Sheets;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue