wavelength 1.0.0
Loading...
Searching...
No Matches
SetMeshAction Class Reference

The set_mesh action, which changes the material of a mesh. More...

#include <setmeshaction.h>

Inheritance diagram for SetMeshAction:
Collaboration diagram for SetMeshAction:

Public Member Functions

 ~SetMeshAction () override=default
 Destroy the object.
 SetMeshAction (DataArray *pAction)
 Read the action.
void Exec () override
 Give the mesh the material, when the node named one.
Public Member Functions inherited from TriggerAction
virtual ~TriggerAction ()
 Release the action.
virtual bool Poll ()
 Advance an action that TriggerMgr::AddRunning() received.
void Start ()
 Run the action now, or schedule it when it has a delay.
float GetDelay () const
void SetDelay (float fDelay)
 Set the time on the clock of the action before Exec() runs.
int GetClock () const
void SetClock (int nClock)
 Set the TriggerMgr::Clock the action runs on.

Additional Inherited Members

Static Public Member Functions inherited from TriggerAction
static TriggerAction * New (DataArray *pAction)
 Build the action a node describes.
Static Protected Member Functions inherited from TriggerAction
template<class T>
static T * FindObject (DataArray *pAction, const char *pszName)
 Find a renderer object of a class by name, warning when there is none.

Detailed Description

The set_mesh action, which changes the material of a mesh.

The RTTI records the class as deriving from TriggerAction. The object is 0x18 bytes. Node 1 names the mesh, and the optional mat the material.

Constructor & Destructor Documentation

◆ ~SetMeshAction()

SetMeshAction::~SetMeshAction ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x00374b70
Ghidra address:
PAL: 0x003e32a0

◆ SetMeshAction()

SetMeshAction::SetMeshAction ( DataArray * pAction)
explicit

Read the action.

Parameters
pActionThe node.
Ghidra address:
NTSC-U/C: 0x00200a90
Ghidra address:
PAL: 0x00209830

Member Function Documentation

◆ Exec()

void SetMeshAction::Exec ( )
overridevirtual

Give the mesh the material, when the node named one.

Ghidra address:
NTSC-U/C: 0x002026a8
Ghidra address:
PAL: 0x0020b448

Implements TriggerAction.


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