resonance 1.0.1
Loading...
Searching...
No Matches
tnlfirefx.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/tnlemitter.h"
4
5class HxStr;
6struct Color;
7namespace Rnd {
8class TransAnim;
9class View;
10} // namespace Rnd
11
27class TnlFireFX {
28public:
37 TnlFireFX(const HxStr &name, int nIndex);
38
57 int Start(float flPathStart,
58 int nIndex,
59 int nSlot,
60 const Color &color,
61 const Color &altColor,
62 float flPathEnd);
63
75 void SetFrame(float flFrame, float flViewFrame);
76
77private:
78 Rnd::TransAnim *mPath; // "fx.path".
79 Rnd::View *mView; // "<name>.view".
80 int mReserved08; // +0x08, never written or read by the recovered routines.
81 int mReserved0c; // +0x0c, never written or read by the recovered routines.
82 TnlEmitter mEmitter; // "<name>.ps".
83 TnlEmitter mAltEmitter; // "<name>a.ps", for an index of -1 only.
84 float mPathStartFrame;
85 float mPathEndFrame; // -1 until Start().
86 float mReferenceFrame; // 1e9 at construction, -1 from Start() to the next SetFrame().
87 int mActive;
88 int mIndex;
89};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Animation that drives one transformable from three keyframe channels.
Definition transanim.h:49
Root of a loadable scene.
Definition view.h:47
Handle on a loaded particle system that can silence it and put back its authored settings.
Definition tnlemitter.h:19
TnlFireFX(const HxStr &name, int nIndex)
Resolve the path, the view, and the systems of one fire.
int Start(float flPathStart, int nIndex, int nSlot, const Color &color, const Color &altColor, float flPathEnd)
Start the fire if it is idle and nIndex selects it.
void SetFrame(float flFrame, float flViewFrame)
Drive the view and advance the path.
The rendering engine.
Definition animhelper.h:3
Linear colour with four float components.
Definition color.h:10