summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/GameObject.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-01-27 01:26:36 +0800
committerchai <chaifix@163.com>2019-01-27 01:26:36 +0800
commit6c8788ed76e1ead173fdeb51caaa43d538fcfe21 (patch)
tree4ec71c3aca07d58d96574671f83f9750f901cb11 /Source/Asura.Engine/GameObject.h
parent409262a6a26972770ba64728a60d45dd2d9fb752 (diff)
*misc
Diffstat (limited to 'Source/Asura.Engine/GameObject.h')
-rw-r--r--Source/Asura.Engine/GameObject.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/Source/Asura.Engine/GameObject.h b/Source/Asura.Engine/GameObject.h
deleted file mode 100644
index 85dc87f..0000000
--- a/Source/Asura.Engine/GameObject.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef __AE_GAMEOBJECT_H__
-#define __AE_GAMEOBJECT_H__
-
-#include "./Containers/Vector.hpp"
-#include "./Math/Vector2.h"
-
-#include "Object.h"
-#include "Component.h"
-#include "Transform.h"
-#include "Manager.hpp"
-
-namespace AsuraEngine
-{
-
- ///
- /// Ϸʵ壬
- ///
- class GameObject final : public Object
- {
- public:
-
- // Ļص
-
- void OnEnable();
- void OnEvent();
- void OnUpdate(uint32 milliseconds);
- void OnRender();
- void OnDisable();
-
- // transformͨк޸GameObjectλáźת
-
- const Transform& GetTransform();
- const Math::Vector2& GetPosition();
- const Math::Vector2& GetScale();
- const Math::Vector2& GetRotation();
- void SetTransform(const Transform& transform);
- void SetPosition(const Math::Vector2& position);
- void SetScale(const Math::Vector2& scale);
- void SetRotation(const Math::Vector2& rotation);
-
- template<typename T>
- inline T GetComponent()
- {
- return NULL;
- }
-
- private:
-
- Transform mTransform;
- Containers::Vector<Component*> mComponents;
-
- };
-
-}
-
-#endif \ No newline at end of file