mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
e524b86e12
* breakout the component types into a scoped enum tested that things are the same as they were before * fix missed rename * fix brick-by-brick name to be crafting because that's what it is
33 lines
796 B
C++
33 lines
796 B
C++
/*
|
|
* Darkflame Universe
|
|
* Copyright 2018
|
|
*/
|
|
|
|
#ifndef BUILDBORDERCOMPONENT_H
|
|
#define BUILDBORDERCOMPONENT_H
|
|
|
|
#include "BitStream.h"
|
|
#include "Entity.h"
|
|
#include "Component.h"
|
|
#include "eReplicaComponentType.h"
|
|
|
|
/**
|
|
* 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;
|
|
|
|
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
|