Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
284
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
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement