mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-04 17:57:47 +00:00
43 lines
703 B
C
43 lines
703 B
C
![]() |
#ifndef _EVENTNPC_H
|
||
|
#define _EVENTNPC_H
|
||
|
|
||
|
#include "Actor.h"
|
||
|
|
||
|
namespace Core {
|
||
|
namespace Entity {
|
||
|
|
||
|
// class for Mobs inheriting from Actor
|
||
|
class EventNpc : public Actor
|
||
|
{
|
||
|
public:
|
||
|
EventNpc();
|
||
|
~EventNpc();
|
||
|
|
||
|
EventNpc( uint32_t enpcId, const Common::FFXIVARR_POSITION3& spawnPos, float rotation );
|
||
|
|
||
|
// send spawn packets to pTarget
|
||
|
void spawn( PlayerPtr pTarget ) override;
|
||
|
|
||
|
// send despawn packets to pTarget
|
||
|
void despawn( ActorPtr pTarget ) override;
|
||
|
|
||
|
uint8_t getLevel() const override;
|
||
|
|
||
|
void resetPos();
|
||
|
|
||
|
uint32_t getEnpcId() const;
|
||
|
|
||
|
private:
|
||
|
|
||
|
static uint32_t m_nextID;
|
||
|
Common::FFXIVARR_POSITION3 m_posOrigin;
|
||
|
uint8_t m_level;
|
||
|
uint32_t m_eNpcId;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|