From e26108787b6a121da83ce8dc23962adfedaf35d8 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 23 Jan 2019 08:37:54 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Asura.Framework/filesystem/animation_loader.lua | 11 +++++++++++ Source/Asura.Framework/filesystem/gameobject_loader.lua | 0 Source/Asura.Framework/filesystem/material_loader.lua | 10 ++++++++++ Source/Asura.Framework/filesystem/path_loader.lua | 11 +++++++++++ Source/Asura.Framework/filesystem/scene_loader.lua | 0 Source/Asura.Framework/graphics/canvas_renderer.lua | 0 Source/Asura.Framework/graphics/default_shaders.lua | 5 +++++ Source/Asura.Framework/graphics/material_manager.lua | 5 +++++ Source/Asura.Framework/graphics/mesh2d_renderer.lua | 5 +++++ Source/Asura.Framework/graphics/particle_system.lua | 3 +++ Source/Asura.Framework/graphics/shape_renderer.lua | 0 Source/Asura.Framework/graphics/sprite_batch_renderer.lua | 0 Source/Asura.Framework/graphics/sprite_renderer.lua | 7 +++++++ Source/Asura.Framework/path/path_calculator.lua | 12 ++++++++++++ Source/Asura.Framework/path/path_manager.lua | 0 15 files changed, 69 insertions(+) create mode 100644 Source/Asura.Framework/filesystem/animation_loader.lua create mode 100644 Source/Asura.Framework/filesystem/gameobject_loader.lua create mode 100644 Source/Asura.Framework/filesystem/material_loader.lua create mode 100644 Source/Asura.Framework/filesystem/path_loader.lua create mode 100644 Source/Asura.Framework/filesystem/scene_loader.lua create mode 100644 Source/Asura.Framework/graphics/canvas_renderer.lua create mode 100644 Source/Asura.Framework/graphics/default_shaders.lua create mode 100644 Source/Asura.Framework/graphics/material_manager.lua create mode 100644 Source/Asura.Framework/graphics/mesh2d_renderer.lua create mode 100644 Source/Asura.Framework/graphics/particle_system.lua create mode 100644 Source/Asura.Framework/graphics/shape_renderer.lua create mode 100644 Source/Asura.Framework/graphics/sprite_batch_renderer.lua create mode 100644 Source/Asura.Framework/graphics/sprite_renderer.lua create mode 100644 Source/Asura.Framework/path/path_calculator.lua create mode 100644 Source/Asura.Framework/path/path_manager.lua (limited to 'Source') diff --git a/Source/Asura.Framework/filesystem/animation_loader.lua b/Source/Asura.Framework/filesystem/animation_loader.lua new file mode 100644 index 0000000..f1dee29 --- /dev/null +++ b/Source/Asura.Framework/filesystem/animation_loader.lua @@ -0,0 +1,11 @@ +local AnimationLoader = AsuraEngine.Loader.New("animation") +local AnimationManager = require "AnimationManager" +local Animation = require "Animation" + +function AnimationLoader.Load(asset) + + local animation = AsuraEngine.Class() + +end + +return AnimationLoader \ No newline at end of file diff --git a/Source/Asura.Framework/filesystem/gameobject_loader.lua b/Source/Asura.Framework/filesystem/gameobject_loader.lua new file mode 100644 index 0000000..e69de29 diff --git a/Source/Asura.Framework/filesystem/material_loader.lua b/Source/Asura.Framework/filesystem/material_loader.lua new file mode 100644 index 0000000..8ecfa51 --- /dev/null +++ b/Source/Asura.Framework/filesystem/material_loader.lua @@ -0,0 +1,10 @@ +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 new file mode 100644 index 0000000..b9112df --- /dev/null +++ b/Source/Asura.Framework/filesystem/path_loader.lua @@ -0,0 +1,11 @@ +local PathLoader = AsuraEngine.Loader.New("path") +local PathManager = require "Path/PathManager" + +function PathLoader.Load(asset) + if asset.type ~= "path" then + return nil + end + +end + +return Path \ No newline at end of file diff --git a/Source/Asura.Framework/filesystem/scene_loader.lua b/Source/Asura.Framework/filesystem/scene_loader.lua new file mode 100644 index 0000000..e69de29 diff --git a/Source/Asura.Framework/graphics/canvas_renderer.lua b/Source/Asura.Framework/graphics/canvas_renderer.lua new file mode 100644 index 0000000..e69de29 diff --git a/Source/Asura.Framework/graphics/default_shaders.lua b/Source/Asura.Framework/graphics/default_shaders.lua new file mode 100644 index 0000000..bd54cb9 --- /dev/null +++ b/Source/Asura.Framework/graphics/default_shaders.lua @@ -0,0 +1,5 @@ +--[[ +内置的shaders. +]] + + diff --git a/Source/Asura.Framework/graphics/material_manager.lua b/Source/Asura.Framework/graphics/material_manager.lua new file mode 100644 index 0000000..46cc13d --- /dev/null +++ b/Source/Asura.Framework/graphics/material_manager.lua @@ -0,0 +1,5 @@ +local MaterialManager = AsuraEngine.Manager.New() + + + +return MaterialManager \ No newline at end of file diff --git a/Source/Asura.Framework/graphics/mesh2d_renderer.lua b/Source/Asura.Framework/graphics/mesh2d_renderer.lua new file mode 100644 index 0000000..01f0d90 --- /dev/null +++ b/Source/Asura.Framework/graphics/mesh2d_renderer.lua @@ -0,0 +1,5 @@ +local Mesh2DRenderer = Class() + + + +return Mesh2DRenderer \ No newline at end of file diff --git a/Source/Asura.Framework/graphics/particle_system.lua b/Source/Asura.Framework/graphics/particle_system.lua new file mode 100644 index 0000000..21c35b8 --- /dev/null +++ b/Source/Asura.Framework/graphics/particle_system.lua @@ -0,0 +1,3 @@ +--粒子系统,是一个组件 + +local ParticleSystem diff --git a/Source/Asura.Framework/graphics/shape_renderer.lua b/Source/Asura.Framework/graphics/shape_renderer.lua new file mode 100644 index 0000000..e69de29 diff --git a/Source/Asura.Framework/graphics/sprite_batch_renderer.lua b/Source/Asura.Framework/graphics/sprite_batch_renderer.lua new file mode 100644 index 0000000..e69de29 diff --git a/Source/Asura.Framework/graphics/sprite_renderer.lua b/Source/Asura.Framework/graphics/sprite_renderer.lua new file mode 100644 index 0000000..79177ba --- /dev/null +++ b/Source/Asura.Framework/graphics/sprite_renderer.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/path/path_calculator.lua b/Source/Asura.Framework/path/path_calculator.lua new file mode 100644 index 0000000..1a564b8 --- /dev/null +++ b/Source/Asura.Framework/path/path_calculator.lua @@ -0,0 +1,12 @@ +--[[ +组件。组件会出现在编辑器的components列表中 +]] +local PathCalculator = AsuraEngine.Component.New("PathCalculator") + +PathCalculator.path = AsuraEngine.Asset.Type("path", "路径") + +function PathCalculator:ctor(path) + self.path = path +end + +return PathCalculator \ No newline at end of file diff --git a/Source/Asura.Framework/path/path_manager.lua b/Source/Asura.Framework/path/path_manager.lua new file mode 100644 index 0000000..e69de29 -- cgit v1.1-26-g67d0