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

Handle on a loaded particle system that can silence it and put back its authored settings. More...

#include <tnlemitter.h>

Public Member Functions

 TnlEmitter ()
 Start with no system.
 ~TnlEmitter ()
 Write the recorded rates and force back to the system.
void Attach (Rnd::ParticleSys *pSys)
 Record the rates and force of pSys, show it, silence it, and release its live particles.
void RotateForce (const float *pMat3Rows)
 Give the system the recorded force turned by a rotation.
void Restart ()
 Release the live particles and give back the recorded rates.
void Stop ()
 Zero both emission rates.
Rnd::ParticleSys * GetParticleSys () const
 Report the system.

Detailed Description

Handle on a loaded particle system that can silence it and put back its authored settings.

The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from what it records, the emission rate range and the force of one Rnd::ParticleSys. TnlArms, TnlMultFX, and TnlFireFX embed it by value, 0x20 bytes each.

Attach() records the authored rates and force and silences the system. Restart() gives the rates back and Stop() zeroes them again. Destruction writes the recorded rates and force back.

Constructor & Destructor Documentation

◆ TnlEmitter()

TnlEmitter::TnlEmitter ( )
inline

Start with no system.

The body has no out-of-line copy. Every owner inlines it.

◆ ~TnlEmitter()

TnlEmitter::~TnlEmitter ( )

Write the recorded rates and force back to the system.

Ghidra address:
NTSC-U/C: 0x00455d08
Ghidra address:
PAL: 0x00493238

Member Function Documentation

◆ Attach()

void TnlEmitter::Attach ( Rnd::ParticleSys * pSys)

Record the rates and force of pSys, show it, silence it, and release its live particles.

pSys must not be null.

Parameters
pSysThe particle system.
Ghidra address:
NTSC-U/C: 0x00455d58
Ghidra address:
PAL: 0x00493288

◆ RotateForce()

void TnlEmitter::RotateForce ( const float * pMat3Rows)

Give the system the recorded force turned by a rotation.

Parameters
pMat3RowsThe rotation, three rows of four floats.
Ghidra address:
NTSC-U/C: 0x00455e30
Ghidra address:
PAL: 0x00493360

◆ Restart()

void TnlEmitter::Restart ( )

Release the live particles and give back the recorded rates.

Ghidra address:
NTSC-U/C: 0x00455e88
Ghidra address:
PAL: 0x004933b8

◆ Stop()

void TnlEmitter::Stop ( )

Zero both emission rates.

Ghidra address:
NTSC-U/C: 0x00455ed0
Ghidra address:
PAL: 0x00493400

◆ GetParticleSys()

Rnd::ParticleSys * TnlEmitter::GetParticleSys ( ) const
inline

Report the system.

The owners read the field directly, and no out-of-line copy exists.

Returns
The system, or null before Attach().

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