summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/graphics/particle_system.lua
diff options
context:
space:
mode:
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