mirror of
https://github.com/Caraxi/mare.client.git
synced 2026-01-01 04:43:38 +01:00
adapt to new glamourer
This commit is contained in:
parent
d7a4cc1ea1
commit
535554e6e5
6 changed files with 99 additions and 121 deletions
|
|
@ -92,6 +92,13 @@ public class DalamudUtilService : IHostedService
|
|||
return (Dalamud.Game.ClientState.Objects.Types.Character)objTableObj;
|
||||
}
|
||||
|
||||
public Dalamud.Game.ClientState.Objects.Types.Character? GetGposeCharacterFromObjectTableByName(string name, bool onlyGposeCharacters = false)
|
||||
{
|
||||
EnsureIsOnFramework();
|
||||
return (Dalamud.Game.ClientState.Objects.Types.Character?)_objectTable.Where(i => !onlyGposeCharacters || i.ObjectIndex >= 200)
|
||||
.FirstOrDefault(f => f.Name.ToString() == name);
|
||||
}
|
||||
|
||||
public unsafe IntPtr GetCompanion(IntPtr? playerPointer = null)
|
||||
{
|
||||
EnsureIsOnFramework();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue