Shots fired! ( ゚Д゚)
This commit is contained in:
@@ -9,10 +9,13 @@ namespace Components
|
||||
struct BarrelSteering : Component
|
||||
{
|
||||
BarrelSteering()
|
||||
: Velocity(1.f), Axis(glm::vec3(0,1,0)){ }
|
||||
float Velocity;
|
||||
: TurnSpeed(1.f), Axis(glm::vec3(0,1,0)){ }
|
||||
float TurnSpeed;
|
||||
glm::vec3 Axis;
|
||||
EntityID ShotTemplate;
|
||||
float ShotSpeed;
|
||||
|
||||
virtual BarrelSteering* Clone() const override { return new BarrelSteering(*this); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#ifndef Shot_h__
|
||||
#define Shot_h__
|
||||
|
||||
#include "Component.h"
|
||||
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct Shot : Component
|
||||
{
|
||||
Shot();
|
||||
float Speed;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // Shot_h__
|
||||
@@ -9,10 +9,11 @@
|
||||
struct TowerSteering : Component
|
||||
{
|
||||
TowerSteering()
|
||||
: Velocity(1.f), Axis(glm::vec3(0,1,0)){ }
|
||||
: TurnSpeed(1.f), Axis(glm::vec3(0,1,0)){ }
|
||||
|
||||
float Velocity;
|
||||
float TurnSpeed;
|
||||
glm::vec3 Axis;
|
||||
virtual TowerSteering* Clone() const override { return new TowerSteering(*this); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user