DarkflameServer/dGame/dComponents/CollectibleComponent.h
David Markowitz 9655f0ee45 make include guards standards conforming
fix compile issues
2024-10-30 00:34:25 -07:00

19 lines
624 B
C++

#ifndef COLLECTIBLECOMPONENT_H
#define COLLECTIBLECOMPONENT_H
#include "Component.h"
#include "eReplicaComponentType.h"
class CollectibleComponent final : public Component {
public:
static constexpr 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