2021-12-05 17:54:36 +00:00
|
|
|
/*
|
|
|
|
* Darkflame Universe
|
|
|
|
* Copyright 2018
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BUILDBORDERCOMPONENT_H
|
|
|
|
#define BUILDBORDERCOMPONENT_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
|
|
|
|
|
|
|
/**
|
|
|
|
* Component for the build border, allowing the user to start building when interacting with it
|
|
|
|
*/
|
|
|
|
class BuildBorderComponent : public Component {
|
|
|
|
public:
|
2023-10-23 01:08:49 +00:00
|
|
|
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::BUILD_BORDER;
|
2022-07-28 13:39:57 +00:00
|
|
|
|
2021-12-05 17:54:36 +00:00
|
|
|
BuildBorderComponent(Entity* parent);
|
|
|
|
~BuildBorderComponent() override;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Causes the originator to start build with this entity as a reference point
|
|
|
|
* @param originator the entity (probably a player) that triggered the event
|
|
|
|
*/
|
|
|
|
void OnUse(Entity* originator) override;
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BUILDBORDERCOMPONENT_H
|