Rename the thingie
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
#include "Common.h"
|
||||
#include "Core/System.h"
|
||||
|
||||
class CoolDeathAnimationSystem : public PureSystem
|
||||
class ExplosionEffectSystem : public PureSystem
|
||||
{
|
||||
public:
|
||||
CoolDeathAnimationSystem(EventBroker* eventBroker)
|
||||
: PureSystem(eventBroker, "CoolDeathAnim")
|
||||
ExplosionEffectSystem(EventBroker* eventBroker)
|
||||
: PureSystem(eventBroker, "ExplosionEffect")
|
||||
{ }
|
||||
|
||||
virtual void UpdateComponent(World* world, ComponentWrapper& object, double dt) override
|
||||
{
|
||||
ComponentWrapper& Component = world->GetComponent(object.EntityID, "CoolDeathAnim");
|
||||
ComponentWrapper& Component = world->GetComponent(object.EntityID, "ExplosionEffect");
|
||||
|
||||
if ((double)Component["TimeSinceDeath"] > (double)Component["ExplosionDuration"]) {
|
||||
(double)Component["TimeSinceDeath"] = 0.f;
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
#include "Core/EntityXMLFile.h"
|
||||
#include "Core/SystemPipeline.h"
|
||||
#include "RaptorCopterSystem.h"
|
||||
#include "CoolDeathAnimationSystem.h"
|
||||
#include "ExplosionEffectSystem.h"
|
||||
#include "PlayerSystem.h"
|
||||
#include "Editor/EditorSystem.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user