mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
0545adfac3
Have fun!
34 lines
704 B
C++
34 lines
704 B
C++
/*
|
|
* Darkflame Universe
|
|
* Copyright 2018
|
|
*/
|
|
|
|
#ifndef PROPERTYCOMPONENT_H
|
|
#define PROPERTYCOMPONENT_H
|
|
|
|
#include "BitStream.h"
|
|
#include "Entity.h"
|
|
#include "Component.h"
|
|
|
|
struct PropertyState {
|
|
LWOOBJID ownerID;
|
|
LWOOBJID propertyID;
|
|
bool rented;
|
|
};
|
|
|
|
/**
|
|
* This component is unused and has no functionality
|
|
*/
|
|
class PropertyComponent : public Component {
|
|
public:
|
|
static const uint32_t ComponentType = COMPONENT_TYPE_PROPERTY;
|
|
explicit PropertyComponent(Entity* parentEntity);
|
|
~PropertyComponent() override;
|
|
[[nodiscard]] PropertyState* GetPropertyState() const { return m_PropertyState; };
|
|
private:
|
|
PropertyState* m_PropertyState;
|
|
std::string m_PropertyName;
|
|
};
|
|
|
|
#endif // PROPERTYCOMPONENT_H
|