Guest User

Untitled

a guest
Aug 30th, 2014
268
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ParticleFXController = {}
  2. function ParticleFXController:Create(cbox)
  3. cbox:RegisterLibrary("Domino/System/LuaLibraries/LuaLibCore.lua")
  4. end
  5. function ParticleFXController:Init(cbox)
  6. end
  7. function ParticleFXController:ShutDown()
  8. end
  9. function ParticleFXController:Start()
  10. local Started = self.Started
  11. if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
  12. CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_PlayParticles")
  13. end
  14. Started(self)
  15. end
  16. function ParticleFXController:Pause()
  17. local Paused = self.Paused
  18. if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
  19. CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_PauseParticles")
  20. end
  21. Paused(self)
  22. end
  23. function ParticleFXController:Stop()
  24. local Stopped = self.Stopped
  25. if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
  26. CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_StopParticles")
  27. end
  28. Stopped(self)
  29. end
  30. function ParticleFXController:Clean()
  31. local Cleaned = self.Cleaned
  32. if LuaLibCore:AssertNotNil(self.ParticleEmitter) then
  33. CDominoManager_GetInstance():SendRegisteredEventToEntity(self.ParticleEmitter, "CNewParticlesComponent_CleanParticles")
  34. end
  35. Cleaned(self)
  36. end
  37. export = ParticleFXController
  38. ParticleFXController = nil
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×