LiveEntity
class LiveEntity<State extends EntityData> extends LiveModel<State>
Defined in entity.ts:60
Properties
alive
readonly alive: boolean
auras
readonly auras: readonly LiveAura[]
cell
readonly cell: string
dead
readonly dead: boolean
hp
readonly hp: number
hpPercent
readonly hpPercent: number
idle
readonly idle: boolean
inCombat
readonly inCombat: boolean
maxHp
readonly maxHp: number
maxMp
readonly maxMp: number
mp
readonly mp: number
mpPercent
readonly mpPercent: number
state
readonly state: EntityState
Methods
getAura()
getAura(name: string, options?: AuraQueryOptions): LiveAura | null
hasAura()
hasAura(name: string, options?: AuraQueryOptions): boolean
isInCell()
isInCell(cell: string): boolean
toJSON()
toJSON(): EntitySnapshot