Isle
Loading...
Searching...
No Matches
LegoAnimScene Class Reference

[AI] Represents an animation scene; possibly used for camera motion or global transforms. More...

#include <legoanim.h>

Public Member Functions

 LegoAnimScene ()
 [AI] Default construction, zeroes all data pointers and counters. More...
 
 ~LegoAnimScene ()
 [AI] Destroys the scene, frees all allocated key arrays. More...
 
LegoResult Read (LegoStorage *p_storage)
 [AI] Reads the entire scene data from storage, including all translation/unknown key arrays. More...
 
LegoResult Write (LegoStorage *p_storage)
 [AI] Serializes the entire scene data to storage, including all translation/unknown key arrays. More...
 
LegoResult FUN_1009f490 (LegoFloat p_time, Matrix4 &p_matrix)
 [AI] Evaluates this scene's animation at the given time, updating the passed matrix. More...
 
LegoU32 GetUnknown0x18 ()
 [AI] Cached index for translation key interpolation (for first translation key array). More...
 
LegoU32 GetUnknown0x1c ()
 [AI] Cached index for translation key interpolation (for second translation key array). More...
 
LegoU32 GetUnknown0x20 ()
 [AI] Cached index for unknown key interpolation. More...
 
void SetUnknown0x18 (LegoU32 p_unk0x18)
 [AI] Sets cached translation index (first stream). More...
 
void SetUnknown0x1c (LegoU32 p_unk0x1c)
 [AI] Sets cached translation index (second stream). More...
 
void SetUnknown0x20 (LegoU32 p_unk0x20)
 [AI] Sets cached key interpolation index (unknown key type). More...
 

Detailed Description

[AI] Represents an animation scene; possibly used for camera motion or global transforms.

[AI] Contains multiple keyframe streams and other data for animating scene-level properties, such as camera movement, or track movement for cutscenes. See usage in LegoAnim for details.

Definition at line 321 of file legoanim.h.

Constructor & Destructor Documentation

◆ LegoAnimScene()

LegoAnimScene::LegoAnimScene ( )

[AI] Default construction, zeroes all data pointers and counters.

Definition at line 59 of file legoanim.cpp.

◆ ~LegoAnimScene()

LegoAnimScene::~LegoAnimScene ( )

[AI] Destroys the scene, frees all allocated key arrays.

Definition at line 73 of file legoanim.cpp.

Member Function Documentation

◆ FUN_1009f490()

LegoResult LegoAnimScene::FUN_1009f490 ( LegoFloat  p_time,
Matrix4 p_matrix 
)

[AI] Evaluates this scene's animation at the given time, updating the passed matrix.

Parameters
p_timeTime to evaluate at [AI]
p_matrixOutput matrix [AI]

Definition at line 202 of file legoanim.cpp.

◆ GetUnknown0x18()

LegoU32 LegoAnimScene::GetUnknown0x18 ( )
inline

[AI] Cached index for translation key interpolation (for first translation key array).

Definition at line 333 of file legoanim.h.

◆ GetUnknown0x1c()

LegoU32 LegoAnimScene::GetUnknown0x1c ( )
inline

[AI] Cached index for translation key interpolation (for second translation key array).

Definition at line 334 of file legoanim.h.

◆ GetUnknown0x20()

LegoU32 LegoAnimScene::GetUnknown0x20 ( )
inline

[AI] Cached index for unknown key interpolation.

Definition at line 335 of file legoanim.h.

◆ Read()

LegoResult LegoAnimScene::Read ( LegoStorage p_storage)

[AI] Reads the entire scene data from storage, including all translation/unknown key arrays.

Parameters
p_storageStorage to read from. [AI]

Definition at line 135 of file legoanim.cpp.

◆ SetUnknown0x18()

void LegoAnimScene::SetUnknown0x18 ( LegoU32  p_unk0x18)
inline

[AI] Sets cached translation index (first stream).

Definition at line 337 of file legoanim.h.

◆ SetUnknown0x1c()

void LegoAnimScene::SetUnknown0x1c ( LegoU32  p_unk0x1c)
inline

[AI] Sets cached translation index (second stream).

Definition at line 338 of file legoanim.h.

◆ SetUnknown0x20()

void LegoAnimScene::SetUnknown0x20 ( LegoU32  p_unk0x20)
inline

[AI] Sets cached key interpolation index (unknown key type).

Definition at line 339 of file legoanim.h.

◆ Write()

LegoResult LegoAnimScene::Write ( LegoStorage p_storage)

[AI] Serializes the entire scene data to storage, including all translation/unknown key arrays.

Parameters
p_storageStorage to write to. [AI]

Definition at line 93 of file legoanim.cpp.


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