2021-12-05 17:54:36 +00:00
|
|
|
/*
|
|
|
|
* Darkflame Universe
|
|
|
|
* Copyright 2018
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PROPERTYCOMPONENT_H
|
|
|
|
#define PROPERTYCOMPONENT_H
|
|
|
|
|
|
|
|
#include "BitStream.h"
|
|
|
|
#include "Entity.h"
|
|
|
|
#include "Component.h"
|
2023-03-04 07:16:37 +00:00
|
|
|
#include "eReplicaComponentType.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
struct PropertyState {
|
|
|
|
LWOOBJID ownerID;
|
|
|
|
LWOOBJID propertyID;
|
|
|
|
bool rented;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This component is unused and has no functionality
|
|
|
|
*/
|
2024-01-24 05:13:23 +00:00
|
|
|
class PropertyComponent final : public Component {
|
2021-12-05 17:54:36 +00:00
|
|
|
public:
|
2024-01-24 05:13:23 +00:00
|
|
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::PROPERTY;
|
2021-12-05 17:54:36 +00:00
|
|
|
explicit PropertyComponent(Entity* parentEntity);
|
|
|
|
~PropertyComponent() override;
|
|
|
|
[[nodiscard]] PropertyState* GetPropertyState() const { return m_PropertyState; };
|
|
|
|
private:
|
|
|
|
PropertyState* m_PropertyState;
|
|
|
|
std::string m_PropertyName;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PROPERTYCOMPONENT_H
|