Newer
Older
Import / projects / Gameloft / bne_lib / code / Utils / ParticleUtils.h
@John John on 29 Dec 2020 885 bytes bulk import from macbookpro checkouts
#ifndef _PARTICLE_UTILS_H_
#define _PARTICLE_UTILS_H_

#include "RKVector.h"

namespace CasualCore
{
  class Object;
};


/// \brief Utility methods for the PFX system
class ParticleUtils
{
public:

  /// \brief Spawn a PFX of the given name
  /// \param a_pfxName The name of the PFX system to spawn
  /// \param a_worldPosition The world position of the spawned object
  /// \param a_selfDelete If the PFX self deletes when complete.
  /// \return Returns a new pfx on on success, nullptr on failure
  static CasualCore::Object* SpawnPFX(const char * a_pfxName, bool a_selfDelete = true, const char * a_objectClassName = NULL);
  static CasualCore::Object* SpawnPFX(const char * a_pfxName, const RKVector & a_worldPosition, bool a_selfDelete = true, const char * a_objectClassName = NULL);
  static void KillParticles();
};


#endif // _PARTICLE_UTILS_H_