mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 22:47:25 +00:00
19 lines
636 B
C
19 lines
636 B
C
|
#ifndef __COLLECTIBLECOMPONENT__H__
|
||
|
#define __COLLECTIBLECOMPONENT__H__
|
||
|
|
||
|
#include "Component.h"
|
||
|
#include "eReplicaComponentType.h"
|
||
|
|
||
|
class CollectibleComponent : public Component {
|
||
|
public:
|
||
|
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::COLLECTIBLE;
|
||
|
CollectibleComponent(Entity* parentEntity, int32_t collectibleId) : Component(parentEntity), m_CollectibleId(collectibleId) {}
|
||
|
|
||
|
int16_t GetCollectibleId() const { return m_CollectibleId; }
|
||
|
void Serialize(RakNet::BitStream* outBitStream, bool isConstruction) override;
|
||
|
private:
|
||
|
int16_t m_CollectibleId = 0;
|
||
|
};
|
||
|
|
||
|
#endif //!__COLLECTIBLECOMPONENT__H__
|