From 6c8788ed76e1ead173fdeb51caaa43d538fcfe21 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 27 Jan 2019 01:26:36 +0800 Subject: *misc --- Source/Asura.Engine/GameObject.h | 56 ---------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 Source/Asura.Engine/GameObject.h (limited to 'Source/Asura.Engine/GameObject.h') 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 - inline T GetComponent() - { - return NULL; - } - - private: - - Transform mTransform; - Containers::Vector mComponents; - - }; - -} - -#endif \ No newline at end of file -- cgit v1.1-26-g67d0