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-10-23 01:08:49 +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
|