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

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ TnlLattice()

TnlLattice::TnlLattice ( )

Resolve "lattice.mnm" and rest it at frame 0.

Ghidra address:
NTSC-U/C: 0x0043c598
Ghidra address:
PAL: 0x00478bb8

◆ ~TnlLattice()

TnlLattice::~TnlLattice ( )

Return the animation to frame 0.

Ghidra address:
NTSC-U/C: 0x00456368
Ghidra address:
PAL: 0x00493898

Member Function Documentation

◆ Start()

void TnlLattice::Start ( float flFrame)
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.

Parameters
flFrameThe start frame.

◆ SetFrame()

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.

Parameters
flFrameThe current frame.
Ghidra address:
NTSC-U/C: 0x004563c0
Ghidra address:
PAL: 0x004938f0

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