1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-23 18:17:46 +00:00
sapphire/src/world/Actor/SpawnGroup.h

38 lines
701 B
C
Raw Normal View History

#ifndef SAPPHIRE_SPAWNGROUP_H
#define SAPPHIRE_SPAWNGROUP_H
#include "ForwardsZone.h"
2018-12-31 13:54:31 +01:00
namespace Sapphire::Entity
{
2018-10-28 21:53:21 +01:00
class SpawnGroup
{
private:
BNpcTemplatePtr m_bNpcTemplate;
2019-01-06 23:34:19 +01:00
uint32_t m_id;
uint32_t m_bNpcTemplateId;
2018-10-28 21:53:21 +01:00
uint32_t m_level;
2019-01-06 23:34:19 +01:00
uint32_t m_maxHp;
2018-10-28 21:53:21 +01:00
std::vector< SpawnPointPtr > m_spawnPoints;
2018-10-28 21:53:21 +01:00
public:
2019-01-06 23:34:19 +01:00
using SpawnPointList = std::vector< SpawnPointPtr >;
SpawnGroup( uint32_t id, uint32_t bNpcTemplateId, uint32_t level, uint32_t maxHp );
uint32_t getId() const;
uint32_t getTemplateId() const;
uint32_t getLevelId() const;
uint32_t getMaxHp() const;
SpawnPointList& getSpawnPointList();
2018-10-28 21:53:21 +01:00
};
2018-10-28 21:53:21 +01:00
}
#endif //SAPPHIRE_SPAWNGROUP_H