From c8666160c42fd8a49c9389ced4584ccb573746fb Mon Sep 17 00:00:00 2001 From: goat Date: Fri, 27 Mar 2020 16:56:28 +0900 Subject: [PATCH] docs: TerritoryType --- Dalamud/Game/ClientState/ClientState.cs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dalamud/Game/ClientState/ClientState.cs b/Dalamud/Game/ClientState/ClientState.cs index 3fc20f09b..7deecca02 100644 --- a/Dalamud/Game/ClientState/ClientState.cs +++ b/Dalamud/Game/ClientState/ClientState.cs @@ -1,12 +1,5 @@ -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Diagnostics; -using System.Linq; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Text; -using System.Threading.Tasks; using Dalamud.Game.ClientState.Actors; using Dalamud.Game.ClientState.Actors.Types; using Dalamud.Game.Internal; @@ -43,7 +36,10 @@ namespace Dalamud.Game.ClientState } } - public ushort TerritoryType => (ushort) Marshal.ReadInt16(Address.TerritoryType); + /// + /// The current Territory the player resides in. + /// + public uint TerritoryType => (uint) Marshal.ReadInt32(Address.TerritoryType); /// /// The content ID of the local character. @@ -79,7 +75,7 @@ namespace Dalamud.Game.ClientState } private void FrameworkOnOnUpdateEvent(Framework framework) { - //LocalPlayer = (PlayerCharacter) this.Actors[0]; + // ignored } } }