Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ParticleFXController = {}
- function ParticleFXController:Create(cbox)
- cbox:RegisterLibrary("Domino/System/LuaLibraries/LuaLibCore.lua")
- end
- function ParticleFXController:Init(cbox)
- end
- function ParticleFXController:ShutDown()
- end
- function ParticleFXController:Start()
- local Started = self.Started
- if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
- CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_PlayParticles")
- end
- Started(self)
- end
- function ParticleFXController:Pause()
- local Paused = self.Paused
- if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
- CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_PauseParticles")
- end
- Paused(self)
- end
- function ParticleFXController:Stop()
- local Stopped = self.Stopped
- if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
- CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_StopParticles")
- end
- Stopped(self)
- end
- function ParticleFXController:Clean()
- local Cleaned = self.Cleaned
- if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
- CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_CleanParticles")
- end
- Cleaned(self)
- end
- export = ParticleFXController
- ParticleFXController = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement