resonance 1.0.1
Loading...
Searching...
No Matches
TnlGemEffectKind Class Reference

A gem kind that TnlGemManager draws as one particle of a particle system per gem. More...

#include <tnlgemeffectkind.h>

Collaboration diagram for TnlGemEffectKind:

Public Member Functions

 TnlGemEffectKind (const char *pszName)
 Look up "<pszName>.ps" and free every particle it has.

Public Attributes

Rnd::ParticleSys * mParticleSys
float mCost

Detailed Description

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.

Constructor & Destructor Documentation

◆ TnlGemEffectKind()

TnlGemEffectKind::TnlGemEffectKind ( const char * pszName)
explicit

Look up "<pszName>.ps" and free every particle it has.

The lookup result is used without a null check.

Parameters
pszNameThe base name of the particle system.
Ghidra address:
NTSC-U/C: 0x004121d0
Ghidra address:
PAL: 0x0044bcb0

Member Data Documentation

◆ mParticleSys

Rnd::ParticleSys* TnlGemEffectKind::mParticleSys

The system each gem takes one particle from.

◆ mCost

float TnlGemEffectKind::mCost

The drawing cost of one gem, always 2.


The documentation for this class was generated from the following file: