diff options
Diffstat (limited to 'Source/Asura.Engine/GameObject.h')
-rw-r--r-- | Source/Asura.Engine/GameObject.h | 56 |
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 |