|
resonance 1.0.1
|
Material animation that plays out the tunnel lattice once it is triggered. More...
#include <tnllattice.h>
Public Member Functions | |
| TnlLattice () | |
| Resolve "lattice.mnm" and rest it at frame 0. | |
| ~TnlLattice () | |
| Return the animation to frame 0. | |
| void | Start (float flFrame) |
| Record the frame the animation starts from. | |
| void | SetFrame (float flFrame) |
| Drive the animation to the time since the start frame. | |
Material animation that plays out the tunnel lattice once it is triggered.
The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from the one object it drives, "lattice.mnm", and from the script name "nolattice".
Until Start() the animation rests at frame 0. From the start frame on, SetFrame() drives it to the time since the start, capped at 8160 frames. Destruction returns it to frame 0.
AppTunnel allocates one, 8 bytes, and stores it at +0x20.
| TnlLattice::TnlLattice | ( | ) |
Resolve "lattice.mnm" and rest it at frame 0.
| TnlLattice::~TnlLattice | ( | ) |
Return the animation to frame 0.
|
inline |
Record the frame the animation starts from.
AppTunnel's message handler inlines the store at 0x00449418, and no out-of-line copy exists. The title is inferred.
| flFrame | The start frame. |
| void TnlLattice::SetFrame | ( | float | flFrame | ) |
Drive the animation to the time since the start frame.
Returns at once before the start frame. AppTunnel inlines this at 0x0044715c.
| flFrame | The current frame. |