summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Component.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Engine/Component.h')
-rw-r--r--Source/Asura.Engine/Component.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/Source/Asura.Engine/Component.h b/Source/Asura.Engine/Component.h
deleted file mode 100644
index 807bbba..0000000
--- a/Source/Asura.Engine/Component.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef __AE_COMPONENT_H__
-#define __AE_COMPONENT_H__
-
-#include "GameObject.h"
-
-namespace AsuraEngine
-{
-
- class GameObject;
-
- ///
- /// ComponentͨprefabGameObjectϡ
- ///
- class Component : public Object
- {
- public:
-
- virtual void OnEnable();
- virtual void OnEvent();
- virtual void OnUpdate(uint32 milliseconds);
- virtual void OnRender();
- virtual void OnDisable();
-
- protected:
-
- enum class EnableCallback
- {
- OnEnable = 1,
- OnEvent = 1 << 1,
- OnUpdate = 1 << 2,
- OnRender = 1 << 3,
- OnDisable = 1 << 4,
- };
-
- EnableCallback mEnabledCallbacks;
-
- GameObject* mGameObject;
-
- };
-
-}
-
-#endif \ No newline at end of file