Rockets deleted properly
This commit is contained in:
@@ -9,10 +9,11 @@ namespace Components
|
||||
struct Physics : Component
|
||||
{
|
||||
Physics()
|
||||
: Mass(0.f), Static(false){}
|
||||
: Mass(1.f), Static(false), Phantom(false){}
|
||||
|
||||
float Mass;
|
||||
bool Static;
|
||||
bool Phantom;
|
||||
|
||||
virtual Physics* Clone() const override { return new Physics(*this); }
|
||||
};
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef Components_TankShell_h__
|
||||
#define Components_TankShell_h__
|
||||
|
||||
#include "Component.h"
|
||||
|
||||
namespace Components
|
||||
{
|
||||
|
||||
struct TankShell : Component
|
||||
{
|
||||
TankShell()
|
||||
: Damage(1.0f){ }
|
||||
|
||||
float Damage;
|
||||
|
||||
virtual TankShell* Clone() const override { return new TankShell(*this); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // Components_TankShell_h__
|
||||
Reference in New Issue
Block a user