mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
5225c86d65
* Misc component cleanup * Update InventoryComponent.h * Update MissionComponent.h * Update PropertyManagementComponent.h * Update PropertyVendorComponent.h * Update SkillComponent.h maximum pedantry B) * SoundTriggerComponent.h braces gone * Rename SoundTriggerComponent.h braces gone to SoundTriggerComponent.h I was tired
35 lines
770 B
C++
35 lines
770 B
C++
/*
|
|
* Darkflame Universe
|
|
* Copyright 2018
|
|
*/
|
|
|
|
#ifndef PROPERTYCOMPONENT_H
|
|
#define PROPERTYCOMPONENT_H
|
|
|
|
#include "BitStream.h"
|
|
#include "Entity.h"
|
|
#include "Component.h"
|
|
#include "eReplicaComponentType.h"
|
|
|
|
struct PropertyState {
|
|
LWOOBJID ownerID;
|
|
LWOOBJID propertyID;
|
|
bool rented;
|
|
};
|
|
|
|
/**
|
|
* This component is unused and has no functionality
|
|
*/
|
|
class PropertyComponent final : public Component {
|
|
public:
|
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::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
|