mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
29 lines
889 B
C#
29 lines
889 B
C#
using System;
|
|
|
|
using Dalamud.Game.ClientState.Objects.Enums;
|
|
|
|
namespace Dalamud.Game.ClientState.Objects.Types;
|
|
|
|
/// <summary>
|
|
/// This class represents a battle NPC.
|
|
/// </summary>
|
|
public unsafe class BattleNpc : BattleChara
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="BattleNpc"/> class.
|
|
/// Set up a new BattleNpc with the provided memory representation.
|
|
/// </summary>
|
|
/// <param name="address">The address of this actor in memory.</param>
|
|
internal BattleNpc(IntPtr address)
|
|
: base(address)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the BattleNpc <see cref="BattleNpcSubKind" /> of this BattleNpc.
|
|
/// </summary>
|
|
public BattleNpcSubKind BattleNpcKind => (BattleNpcSubKind)this.Struct->Character.GameObject.SubKind;
|
|
|
|
/// <inheritdoc/>
|
|
public override uint TargetObjectId => this.Struct->Character.TargetObjectID;
|
|
}
|