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
|
|
|
|
*/
|
|
|
|
class PropertyComponent : public Component {
|
|
|
|
public:
|
2023-06-09 08:22:45 +00:00
|
|
|
inline static const 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
|