mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 04:13:40 +01:00
Initial commit
This commit is contained in:
commit
ac838687f8
157 changed files with 27905 additions and 0 deletions
32
Dalamud/Game/ClientState/Structs/Actor.cs
Normal file
32
Dalamud/Game/ClientState/Structs/Actor.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Game.ClientState.Actors;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Structs
|
||||
{
|
||||
/// <summary>
|
||||
/// Native memory representation of a FFXIV actor.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public struct Actor {
|
||||
[FieldOffset(0x30)] [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 30)] public string Name;
|
||||
[FieldOffset(116)] public int ActorId;
|
||||
[FieldOffset(128)] public int DataId;
|
||||
[FieldOffset(132)] public int OwnerId;
|
||||
[FieldOffset(140)] public ObjectKind ObjectKind;
|
||||
[FieldOffset(141)] public byte SubKind;
|
||||
[FieldOffset(160)] public Position3 Position;
|
||||
[FieldOffset(6296)] public byte CurrentWorld;
|
||||
[FieldOffset(6298)] public byte HomeWorld;
|
||||
[FieldOffset(6308)] public int CurrentHp;
|
||||
[FieldOffset(6312)] public int MaxHp;
|
||||
[FieldOffset(6316)] public int CurrentMp;
|
||||
[FieldOffset(6320)] public int MaxMp;
|
||||
[FieldOffset(6364)] public byte ClassJob;
|
||||
[FieldOffset(6366)] public byte Level;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue