DarkflameServer/dGame/dComponents/BuildBorderComponent.h

33 lines
796 B
C
Raw Normal View History

/*
* Darkflame Universe
* Copyright 2018
*/
#ifndef BUILDBORDERCOMPONENT_H
#define BUILDBORDERCOMPONENT_H
#include "BitStream.h"
#include "Entity.h"
#include "Component.h"
#include "eReplicaComponentType.h"
2022-07-28 13:39:57 +00:00
/**
* Component for the build border, allowing the user to start building when interacting with it
*/
class BuildBorderComponent : public Component {
public:
static const eReplicaComponentType ComponentType = eReplicaComponentType::BUILD_BORDER;
2022-07-28 13:39:57 +00:00
BuildBorderComponent(Entity* parent);
~BuildBorderComponent() override;
2022-07-28 13:39:57 +00:00
/**
* 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