summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/Graphics/particle_system.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-01-29 08:52:30 +0800
committerchai <chaifix@163.com>2019-01-29 08:52:30 +0800
commit6756fad2ec987b48f9e2afb967d9ba65f117f9b9 (patch)
tree54ed8777f4ffe00c8786265bb54d62479099a4f4 /Source/Asura.Framework/Graphics/particle_system.lua
parenta94b3b42900d612d25bc1a40280a21fb46ffbc4b (diff)
*misc
Diffstat (limited to 'Source/Asura.Framework/Graphics/particle_system.lua')
-rw-r--r--Source/Asura.Framework/Graphics/particle_system.lua20
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/Asura.Framework/Graphics/particle_system.lua b/Source/Asura.Framework/Graphics/particle_system.lua
index a5f8015..17d52e7 100644
--- a/Source/Asura.Framework/Graphics/particle_system.lua
+++ b/Source/Asura.Framework/Graphics/particle_system.lua
@@ -1,6 +1,20 @@
-local ParticleSystem = AsuraEngine.Component.Sub("ParticleSystem")
-AsuraEngine.ParticleSystem = ParticleSystem
+require "graphics.sprite_renderer"
-function ParticleSystem.Ctor(self)
+AsuraEngine.ParticleSystem = AsuraEngine.Component.Sub("ParticleSystem")
+
+local ParticleSystem = AsuraEngine.ParticleSystem
+
+function ParticleSystem.Ctor(self, entity, def)
+ self.base(entity)
+ self.spriteRenderer = AsuraEngine.SpriteRenderer.New()
+end
+
+function ParticleSystem.OnRenderer()
end
+
+function ParticleSystem.OnUpdate(dt)
+
+end
+
+return ParticleSystem \ No newline at end of file