mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 23:13:35 +00:00
5225c86d65
* Misc component cleanup * Update InventoryComponent.h * Update MissionComponent.h * Update PropertyManagementComponent.h * Update PropertyVendorComponent.h * Update SkillComponent.h maximum pedantry B) * SoundTriggerComponent.h braces gone * Rename SoundTriggerComponent.h braces gone to SoundTriggerComponent.h I was tired
19 lines
639 B
C++
19 lines
639 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__
|