wavelength 1.0.0
Loading...
Searching...
No Matches
TnlFire::ChunkModel Class Reference

A kind of chunk, a mesh and the animation it tumbles by, drawn as many instances. More...

#include <tnlfire.h>

Collaboration diagram for TnlFire::ChunkModel:

Public Member Functions

 ChunkModel ()
 Make a model with no mesh.
 ChunkModel (ChunkModel &&) noexcept=default
 Move a model.
 ~ChunkModel ()
 Delete the instanced mesh.
void CreateMultiMesh ()
 Create the instanced mesh that draws the chunks of the model, named for the address of the model.

Public Attributes

float mWeight
std::unique_ptr< RndMultiMesh > mMultiMesh
RndTransAnim * mTransAnim
RndMesh * mMesh

Detailed Description

A kind of chunk, a mesh and the animation it tumbles by, drawn as many instances.

The class is not polymorphic. RTTI identifies it. The object is 0x10 bytes. The entries of capture_chunks give the weight of the model and the names of its mesh and animation.

Constructor & Destructor Documentation

◆ ChunkModel() [1/2]

TnlFire::ChunkModel::ChunkModel ( )
inline

Make a model with no mesh.

The binary expands it inline.

◆ ChunkModel() [2/2]

TnlFire::ChunkModel::ChunkModel ( ChunkModel && )
defaultnoexcept

Move a model.

The vector of models moves its entries as the vector grows.

◆ ~ChunkModel()

TnlFire::ChunkModel::~ChunkModel ( )

Delete the instanced mesh.

Ghidra address:
NTSC-U/C: 0x001d4618
Ghidra address:
PAL: 0x001dd3b8

Member Function Documentation

◆ CreateMultiMesh()

void TnlFire::ChunkModel::CreateMultiMesh ( )

Create the instanced mesh that draws the chunks of the model, named for the address of the model.

Ghidra address:
NTSC-U/C: 0x001d4580
Ghidra address:
PAL: 0x001dd320

Member Data Documentation

◆ mWeight

float TnlFire::ChunkModel::mWeight

The chance of the model against the other models.

◆ mMultiMesh

std::unique_ptr<RndMultiMesh> TnlFire::ChunkModel::mMultiMesh

The instances of the mesh.

◆ mTransAnim

RndTransAnim* TnlFire::ChunkModel::mTransAnim

The tumble of a chunk over its life. Borrowed.

◆ mMesh

RndMesh* TnlFire::ChunkModel::mMesh

The mesh. Borrowed.


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