diff options
author | chai <chaifix@163.com> | 2019-01-23 21:01:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-23 21:01:30 +0800 |
commit | 7095218ad1cf958d4fc2f20d848190ea6cd9dd8c (patch) | |
tree | 70baae15e471f0188fcc6b11a26d93bfd8e86b30 /Source | |
parent | 4c5caaca408f52b6b14e4ba63bd2c87fa8cb61da (diff) |
*misc
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Asura.Editor/Source/Window.h | 14 | ||||
-rw-r--r-- | Source/Asura.Engine/Graphics/Window.cpp | 0 | ||||
-rw-r--r-- | Source/Asura.Engine/Graphics/Window.h | 20 | ||||
-rw-r--r-- | Source/Asura.Framework/Component.lua | 2 | ||||
-rw-r--r-- | Source/Asura.Framework/Filesystem/Loader.lua | 19 | ||||
-rw-r--r-- | Source/Asura.Framework/Filesystem/material_loader.lua | 4 | ||||
-rw-r--r-- | Source/Asura.Framework/Filesystem/path_loader.lua | 7 | ||||
-rw-r--r-- | Source/Asura.Framework/Graphics/Animator.lua | 8 | ||||
-rw-r--r-- | Source/Asura.Framework/compile.bat | 0 | ||||
-rw-r--r-- | Source/Asura.Framework/component.lua | 2 | ||||
-rw-r--r-- | Source/Asura.Framework/filesystem/loader.lua | 19 | ||||
-rw-r--r-- | Source/Asura.Framework/filesystem/material_loader.lua | 4 | ||||
-rw-r--r-- | Source/Asura.Framework/filesystem/path_loader.lua | 7 | ||||
-rw-r--r-- | Source/Asura.Framework/graphics/animator.lua | 8 |
14 files changed, 58 insertions, 56 deletions
diff --git a/Source/Asura.Editor/Source/Window.h b/Source/Asura.Editor/Source/Window.h new file mode 100644 index 0000000..f9f8d43 --- /dev/null +++ b/Source/Asura.Editor/Source/Window.h @@ -0,0 +1,14 @@ +#ifndef __ASURA_EDITOR_WINDOW_H__ +#define __ASURA_EDITOR_WINDOW_H__ + +namespace AsuraEditor +{ + + class Window + { + + }; + +} + +#endif
\ No newline at end of file diff --git a/Source/Asura.Engine/Graphics/Window.cpp b/Source/Asura.Engine/Graphics/Window.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Source/Asura.Engine/Graphics/Window.cpp diff --git a/Source/Asura.Engine/Graphics/Window.h b/Source/Asura.Engine/Graphics/Window.h new file mode 100644 index 0000000..1707e3d --- /dev/null +++ b/Source/Asura.Engine/Graphics/Window.h @@ -0,0 +1,20 @@ +#ifndef __AE_WINDOW_H__ +#define __AE_WINDOW_H__ + +namespace AsuraEngine +{ + namespace Graphics + { + + /// + /// Ϸ + /// + class Window + { + + }; + + } +} + +#endif
\ No newline at end of file diff --git a/Source/Asura.Framework/Component.lua b/Source/Asura.Framework/Component.lua index 027c066..dd843eb 100644 --- a/Source/Asura.Framework/Component.lua +++ b/Source/Asura.Framework/Component.lua @@ -3,7 +3,7 @@ local Component = Class() Component.gameobject = AsuraEngine.Type.GameObject function Component:Ctor(go) - self.gameobject = go + self.gameobject = go end function Component:OnEvent(e) diff --git a/Source/Asura.Framework/Filesystem/Loader.lua b/Source/Asura.Framework/Filesystem/Loader.lua index fbbd68a..9ac058b 100644 --- a/Source/Asura.Framework/Filesystem/Loader.lua +++ b/Source/Asura.Framework/Filesystem/Loader.lua @@ -1,22 +1,9 @@ ---[[ -࣬ԶԴ̳ͨдർ롣ԶԴıǷ -<asset> - <extern>./resource.maptile</extern> -</asset> -ָ˵impoter֮ԶԴͨз: -<maptile> - <extern>./resource.maptile</extern> -</maptile> -ʹöӦڲԴ͵importerԴ +local Loader = Class() -]] - -local importer = Class() - -function importer:InnerResource( data ) +function Loader:InnerResource( data ) end -return importer
\ No newline at end of file +return Loader
\ No newline at end of file diff --git a/Source/Asura.Framework/Filesystem/material_loader.lua b/Source/Asura.Framework/Filesystem/material_loader.lua index 8ecfa51..2ea47f4 100644 --- a/Source/Asura.Framework/Filesystem/material_loader.lua +++ b/Source/Asura.Framework/Filesystem/material_loader.lua @@ -2,9 +2,7 @@ local MaterialLoader = AsuraEngine.Loader.New("material") local MaterialManager = require "MaterialManager" function MaterialLoader.Load(mat) - - - + end return MaterialLoader
\ No newline at end of file diff --git a/Source/Asura.Framework/Filesystem/path_loader.lua b/Source/Asura.Framework/Filesystem/path_loader.lua index b9112df..c62be96 100644 --- a/Source/Asura.Framework/Filesystem/path_loader.lua +++ b/Source/Asura.Framework/Filesystem/path_loader.lua @@ -2,10 +2,9 @@ local PathLoader = AsuraEngine.Loader.New("path") local PathManager = require "Path/PathManager" function PathLoader.Load(asset) - if asset.type ~= "path" then - return nil - end - + if asset.type ~= "path" then + return nil + end end return Path
\ No newline at end of file diff --git a/Source/Asura.Framework/Graphics/Animator.lua b/Source/Asura.Framework/Graphics/Animator.lua index 1dca9f4..2e52104 100644 --- a/Source/Asura.Framework/Graphics/Animator.lua +++ b/Source/Asura.Framework/Graphics/Animator.lua @@ -1,6 +1,6 @@ local Animator = Class(function(go) - self.gameobject = go - self.spriteRenderer = go:GetSpriteRenderer() + self.gameobject = go + self.spriteRenderer = go:GetSpriteRenderer() end) Animator.animation = AsuraEngine.Animation.None @@ -8,11 +8,11 @@ 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/compile.bat b/Source/Asura.Framework/compile.bat new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Source/Asura.Framework/compile.bat diff --git a/Source/Asura.Framework/component.lua b/Source/Asura.Framework/component.lua index 027c066..dd843eb 100644 --- a/Source/Asura.Framework/component.lua +++ b/Source/Asura.Framework/component.lua @@ -3,7 +3,7 @@ local Component = Class() Component.gameobject = AsuraEngine.Type.GameObject function Component:Ctor(go) - self.gameobject = go + self.gameobject = go end function Component:OnEvent(e) diff --git a/Source/Asura.Framework/filesystem/loader.lua b/Source/Asura.Framework/filesystem/loader.lua index fbbd68a..9ac058b 100644 --- a/Source/Asura.Framework/filesystem/loader.lua +++ b/Source/Asura.Framework/filesystem/loader.lua @@ -1,22 +1,9 @@ ---[[ -࣬ԶԴ̳ͨдർ롣ԶԴıǷ -<asset> - <extern>./resource.maptile</extern> -</asset> -ָ˵impoter֮ԶԴͨз: -<maptile> - <extern>./resource.maptile</extern> -</maptile> -ʹöӦڲԴ͵importerԴ +local Loader = Class() -]] - -local importer = Class() - -function importer:InnerResource( data ) +function Loader:InnerResource( data ) end -return importer
\ No newline at end of file +return Loader
\ No newline at end of file diff --git a/Source/Asura.Framework/filesystem/material_loader.lua b/Source/Asura.Framework/filesystem/material_loader.lua index 8ecfa51..2ea47f4 100644 --- a/Source/Asura.Framework/filesystem/material_loader.lua +++ b/Source/Asura.Framework/filesystem/material_loader.lua @@ -2,9 +2,7 @@ local MaterialLoader = AsuraEngine.Loader.New("material") local MaterialManager = require "MaterialManager" function MaterialLoader.Load(mat) - - - + end return MaterialLoader
\ No newline at end of file diff --git a/Source/Asura.Framework/filesystem/path_loader.lua b/Source/Asura.Framework/filesystem/path_loader.lua index b9112df..c62be96 100644 --- a/Source/Asura.Framework/filesystem/path_loader.lua +++ b/Source/Asura.Framework/filesystem/path_loader.lua @@ -2,10 +2,9 @@ local PathLoader = AsuraEngine.Loader.New("path") local PathManager = require "Path/PathManager" function PathLoader.Load(asset) - if asset.type ~= "path" then - return nil - end - + if asset.type ~= "path" then + return nil + end end return Path
\ No newline at end of file diff --git a/Source/Asura.Framework/graphics/animator.lua b/Source/Asura.Framework/graphics/animator.lua index 1dca9f4..2e52104 100644 --- a/Source/Asura.Framework/graphics/animator.lua +++ b/Source/Asura.Framework/graphics/animator.lua @@ -1,6 +1,6 @@ local Animator = Class(function(go) - self.gameobject = go - self.spriteRenderer = go:GetSpriteRenderer() + self.gameobject = go + self.spriteRenderer = go:GetSpriteRenderer() end) Animator.animation = AsuraEngine.Animation.None @@ -8,11 +8,11 @@ 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 |