2023-10-23 01:08:49 +00:00
|
|
|
#ifndef __ITEMCOMPONENT__H__
|
|
|
|
#define __ITEMCOMPONENT__H__
|
|
|
|
|
|
|
|
#include "Component.h"
|
|
|
|
#include "eReplicaComponentType.h"
|
|
|
|
|
2024-01-24 05:13:23 +00:00
|
|
|
class ItemComponent final : public Component {
|
2023-10-23 01:08:49 +00:00
|
|
|
public:
|
2024-01-24 05:13:23 +00:00
|
|
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::ITEM;
|
2023-10-23 01:08:49 +00:00
|
|
|
|
2024-05-21 05:39:56 +00:00
|
|
|
ItemComponent(Entity* entity);
|
2023-10-23 01:08:49 +00:00
|
|
|
|
2024-02-27 07:25:44 +00:00
|
|
|
void Serialize(RakNet::BitStream& bitStream, bool isConstruction) override;
|
2024-05-21 05:39:56 +00:00
|
|
|
|
|
|
|
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;
|
2023-10-23 01:08:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //!__ITEMCOMPONENT__H__
|