Fixed all my pointers

This commit is contained in:
2022-10-19 19:44:47 -07:00
parent fd7c075fa0
commit 70f14ee2e5
31 changed files with 289 additions and 141 deletions

View File

@@ -13,14 +13,14 @@ namespace Dawn {
class SceneItemComponent {
public:
std::weak_ptr<SceneItem> item;
SceneItem &item;
SceneItemComponent(std::weak_ptr<SceneItem> item);
SceneItemComponent(SceneItem &item);
virtual void start() = 0;
std::shared_ptr<Scene> getScene();
std::shared_ptr<DawnGame> getGame();
Scene & getScene();
DawnGame & getGame();
virtual ~SceneItemComponent();
};