mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
24 lines
599 B
C++
24 lines
599 B
C++
#ifndef __ITEMCOMPONENT__H__
|
|
#define __ITEMCOMPONENT__H__
|
|
|
|
#include "Component.h"
|
|
#include "eReplicaComponentType.h"
|
|
|
|
class ItemComponent final : public Component {
|
|
public:
|
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::ITEM;
|
|
|
|
ItemComponent(Entity* entity);
|
|
|
|
void Serialize(RakNet::BitStream& bitStream, bool isConstruction) override;
|
|
|
|
void UpdateDescription(const std::u16string& description);
|
|
private:
|
|
std::u16string m_Description;
|
|
bool m_Dirty = false;
|
|
LWOOBJID m_UgcId = LWOOBJID_EMPTY;
|
|
uint32_t m_ModerationStatus = 0;
|
|
};
|
|
|
|
#endif //!__ITEMCOMPONENT__H__
|