|
resonance 1.0.1
|
A gem kind that TnlGemManager draws as one particle of a particle system per gem. More...
#include <tnlgemeffectkind.h>

Public Member Functions | |
| TnlGemEffectKind (const char *pszName) | |
| Look up "<pszName>.ps" and free every particle it has. | |
Public Attributes | |
| Rnd::ParticleSys * | mParticleSys |
| float | mCost |
A gem kind that TnlGemManager draws as one particle of a particle system per gem.
The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from TnlGemManager::AddEffectKind(), which builds one per effect gem ("gem_drum", "gem_bass", and the other instrument gems). The record is 8 bytes, allocated with the untagged scalar allocator.
|
explicit |
Look up "<pszName>.ps" and free every particle it has.
The lookup result is used without a null check.
| pszName | The base name of the particle system. |
| Rnd::ParticleSys* TnlGemEffectKind::mParticleSys |
The system each gem takes one particle from.
| float TnlGemEffectKind::mCost |
The drawing cost of one gem, always 2.