From 5794fe6c2ef24d1215902d36058f55b12f6e836e Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 5 Jul 2020 00:33:29 -0500 Subject: [PATCH] Make Entity class not extend from `enable_shared_from_this` --- include/simpleengine/entity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/simpleengine/entity.h b/include/simpleengine/entity.h index 89e0501..05b180d 100644 --- a/include/simpleengine/entity.h +++ b/include/simpleengine/entity.h @@ -17,7 +17,8 @@ namespace simpleengine { class Game; class Event; - class Entity : std::enable_shared_from_this { + // @TODO Create a Destructible class that replaces Entity::Destroying, Entity::DestroyLater, and Entity::IsGettingDestroyed. + class Entity { friend class Game; friend class Event; public: