2018-09-24 23:48:42 +02:00
|
|
|
#ifndef SAPPHIRE_SPAWNPOINT_H
|
|
|
|
#define SAPPHIRE_SPAWNPOINT_H
|
|
|
|
|
|
|
|
#include "ForwardsZone.h"
|
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
namespace Sapphire::Entity
|
2018-09-24 23:48:42 +02:00
|
|
|
{
|
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
class SpawnPoint
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
float m_posX;
|
|
|
|
float m_posY;
|
|
|
|
float m_posZ;
|
|
|
|
float m_rotation;
|
|
|
|
uint32_t m_gimmickId;
|
2018-09-24 23:48:42 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
uint32_t m_lastSpawn;
|
2019-01-06 23:34:19 +01:00
|
|
|
uint32_t m_timeOfDeath;
|
2018-10-28 21:53:21 +01:00
|
|
|
BNpcPtr m_pLinkedBnpc;
|
2018-09-24 23:48:42 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
public:
|
|
|
|
SpawnPoint();
|
|
|
|
SpawnPoint( float x, float y, float z, float rot, uint32_t gimmickId );
|
2018-09-24 23:48:42 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
float getPosX() const;
|
|
|
|
float getPosY() const;
|
|
|
|
float getPosZ() const;
|
|
|
|
float getRotation() const;
|
2018-09-24 23:48:42 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
uint32_t getGimmickId() const;
|
2018-09-24 23:48:42 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
BNpcPtr getLinkedBNpc();
|
|
|
|
void setLinkedBNpc( BNpcPtr pBnpc );
|
2018-09-24 23:48:42 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
};
|
2018-09-24 23:48:42 +02:00
|
|
|
|
2018-10-28 21:53:21 +01:00
|
|
|
}
|
2018-09-24 23:48:42 +02:00
|
|
|
|
|
|
|
#endif //SAPPHIRE_SPAWNPOINT_H
|