From ed55634426e42bb151f6c1710d8d0446e8ece8e1 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 19 Jan 2019 10:18:00 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=9E=B6=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Asura.Framework/AI/StateMachine.lua | 3 ++ Source/Asura.Framework/Class.lua | 3 ++ Source/Asura.Framework/GameObject.lua | 55 ++++++++++++++++++++++ Source/Asura.Framework/Graphics/Animator.lua | 10 +++- Source/Asura.Framework/Graphics/Mesh2DRenderer.lua | 5 ++ Source/Asura.Framework/Graphics/ParticleSystem.lua | 3 ++ Source/Asura.Framework/Graphics/SpriteRenderer.lua | 7 +++ Source/Asura.Framework/Prefab.lua | 5 ++ Source/Asura.Framework/Scene.lua | 5 ++ 9 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 Source/Asura.Framework/AI/StateMachine.lua create mode 100644 Source/Asura.Framework/Class.lua create mode 100644 Source/Asura.Framework/Prefab.lua (limited to 'Source/Asura.Framework') diff --git a/Source/Asura.Framework/AI/StateMachine.lua b/Source/Asura.Framework/AI/StateMachine.lua new file mode 100644 index 0000000..58012ca --- /dev/null +++ b/Source/Asura.Framework/AI/StateMachine.lua @@ -0,0 +1,3 @@ +local StateMachine = Class() + +return StateMachine \ No newline at end of file diff --git a/Source/Asura.Framework/Class.lua b/Source/Asura.Framework/Class.lua new file mode 100644 index 0000000..78c577c --- /dev/null +++ b/Source/Asura.Framework/Class.lua @@ -0,0 +1,3 @@ +function Class() + +end \ No newline at end of file diff --git a/Source/Asura.Framework/GameObject.lua b/Source/Asura.Framework/GameObject.lua index e69de29..358ba14 100644 --- a/Source/Asura.Framework/GameObject.lua +++ b/Source/Asura.Framework/GameObject.lua @@ -0,0 +1,55 @@ +local GameObject = Class() + +function GameObject:OnEnable() + +end + +function GameObject:OnEvent(e) + +end + +function GameObject:OnUpdate() + +end + +function GameObject:OnRender() + +end + +function GameObject:OnDisable() + +end + +function GameObject:GetTrasform() + +end + +function GameObject:GetPosition() + +end + +function GameObject:GetScale() + +end + +function GameObject:GetRotation() + +end + +function GameObject:SetTrasform(transform) + +end + +function GameObject:SetPosition() + +end + +function GameObject:SetScale() + +end + +function GameObject:SetRotation() + +end + +return GameObject \ No newline at end of file diff --git a/Source/Asura.Framework/Graphics/Animator.lua b/Source/Asura.Framework/Graphics/Animator.lua index 0f37c8b..eb33e49 100644 --- a/Source/Asura.Framework/Graphics/Animator.lua +++ b/Source/Asura.Framework/Graphics/Animator.lua @@ -1,7 +1,15 @@ local Animator = Class() -Animator.animation = AsuraEngine.Type.Animation +Animator.animation = AsuraEngine.Animation.None +local animation = AsuraEngine.Animation.New() +function Animator:OnUpdate(dt) + +end + +function Animator:OnRender() + +end return Animator \ No newline at end of file diff --git a/Source/Asura.Framework/Graphics/Mesh2DRenderer.lua b/Source/Asura.Framework/Graphics/Mesh2DRenderer.lua index e69de29..01f0d90 100644 --- a/Source/Asura.Framework/Graphics/Mesh2DRenderer.lua +++ b/Source/Asura.Framework/Graphics/Mesh2DRenderer.lua @@ -0,0 +1,5 @@ +local Mesh2DRenderer = Class() + + + +return Mesh2DRenderer \ No newline at end of file diff --git a/Source/Asura.Framework/Graphics/ParticleSystem.lua b/Source/Asura.Framework/Graphics/ParticleSystem.lua index e69de29..466d622 100644 --- a/Source/Asura.Framework/Graphics/ParticleSystem.lua +++ b/Source/Asura.Framework/Graphics/ParticleSystem.lua @@ -0,0 +1,3 @@ +--Á£×Óϵͳ + +local ParticleSystem diff --git a/Source/Asura.Framework/Graphics/SpriteRenderer.lua b/Source/Asura.Framework/Graphics/SpriteRenderer.lua index e69de29..79177ba 100644 --- a/Source/Asura.Framework/Graphics/SpriteRenderer.lua +++ b/Source/Asura.Framework/Graphics/SpriteRenderer.lua @@ -0,0 +1,7 @@ +local SpriteRenderer = Class() + +function SpriteRenderer:OnRender() + +end + +return SpriteRenderer \ No newline at end of file diff --git a/Source/Asura.Framework/Prefab.lua b/Source/Asura.Framework/Prefab.lua new file mode 100644 index 0000000..f03ed1d --- /dev/null +++ b/Source/Asura.Framework/Prefab.lua @@ -0,0 +1,5 @@ +local Prefab = Class() + + + +return Prefab \ No newline at end of file diff --git a/Source/Asura.Framework/Scene.lua b/Source/Asura.Framework/Scene.lua index e69de29..1c9fd16 100644 --- a/Source/Asura.Framework/Scene.lua +++ b/Source/Asura.Framework/Scene.lua @@ -0,0 +1,5 @@ +local Scene = Class() + + + +return Scene \ No newline at end of file -- cgit v1.1-26-g67d0