I just made C++ God and it's scary

This commit is contained in:
2023-02-26 21:56:39 -08:00
parent 451b5b067e
commit cd0a5a2155
15 changed files with 221 additions and 96 deletions

View File

@ -45,6 +45,10 @@ void SceneItemComponent::onDispose() {
}
void SceneItemComponent::onStateUpdate() {
}
SceneItemComponent::~SceneItemComponent() {
}

View File

@ -7,11 +7,12 @@
#include "dawnlibs.hpp"
#include "display/Transform.hpp"
#include "scene/SceneItem.hpp"
#include "state/State.hpp"
namespace Dawn {
class DawnGame;
class SceneItemComponent {
class SceneItemComponent : public StateOwner {
public:
SceneItem *item;
Transform *transform;
@ -70,6 +71,7 @@ namespace Dawn {
*/
virtual void onDispose();
virtual void onStateUpdate();
/**
* Cleanup the SceneItemComponent.