mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-09 09:48:20 +00:00
b23981e591
* Update a few components to use smart pointers for memory management * 'final' keyword added to classes * removed duplicate 'const' * removed unused code * Updated render component to store effects directly in a vector * Use move instead of copy * make pointers const * attribute tags * nitpicking * delete default effect constructor * Added a vector size check to the RemoveEffect() function * use empty() instead of size()
23 lines
524 B
C++
23 lines
524 B
C++
/*
|
|
* Darkflame Universe
|
|
* Copyright 2024
|
|
*/
|
|
|
|
#ifndef PROPERTYCOMPONENT_H
|
|
#define PROPERTYCOMPONENT_H
|
|
|
|
#include "Entity.h"
|
|
#include "Component.h"
|
|
#include "eReplicaComponentType.h"
|
|
|
|
/**
|
|
* This component is unused and has no functionality
|
|
*/
|
|
class PropertyComponent final : public Component {
|
|
public:
|
|
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::PROPERTY;
|
|
explicit PropertyComponent(Entity* const parentEntity) noexcept : Component{ parentEntity } {}
|
|
};
|
|
|
|
#endif // !PROPERTYCOMPONENT_H
|