28void LegoLocomotionAnimPresenter::Init()
56 if (!p_fromDestructor) {
74 if (m_roiMapList ==
NULL) {
125 if (m_unk0xd4 == 0) {
[AI] Path-based actor which supports skeletal/mesh animation via an animation tree and multiple anima...
virtual MxResult FUN_1001c450(LegoAnim *p_AnimTreePtr, float p_unk0x00, LegoROI **p_roiMap, MxU32 p_numROIs)
[AI] Adds a new animation mapping (LegoAnimActorStruct) with a tree, threshold, and mesh mapping.
[AI] Holds per-node animation data for a model's animation tree.
LegoROIList * m_unk0x70
[AI] List of ROIs used during preprocessing, actor matching, or variable substitution (purpose varies...
void FUN_10069b10()
[AI] Builds mapping from animation node data names to ROIs, fills m_roiMap and m_roiMapSize.
virtual MxResult CreateAnim(MxStreamChunk *p_chunk)
[AI] Creates/loads the LegoAnim resource instance from a stream chunk buffer.
LegoAnim * m_anim
[AI] Animation resource currently being played back.
void ReadyTickle() override
[AI] Called when the presenter is in the "Ready" tickle state.
MxU32 m_roiMapSize
[AI] Number of valid entries in m_roiMap (excluding 0th index).
void Destroy() override
[AI] Releases all internal resources, actors, maps, and presenter state.
LegoROI ** m_roiMap
[AI] Lookup array to map animation node indices to scene ROIs (1-based index).
void FUN_100695c0()
[AI] Scans the world view compound objects to find and collect relevant ROIs for animation,...
MxResult AddToManager() override
[AI] Adds this presenter instance to the relevant presenter/notification manager.
LegoWorld * m_currentWorld
[AI] Reference to the world in which this presenter is currently placed/active.
LegoROI * GetROI()
[AI] Gets the ROI (Realtime Object Instance) associated with this entity. [AI]
[AI] Specialized presenter class for handling locomotion animation playback and state in the LEGO Isl...
void Destroy() override
[AI] Completely cleans up and deletes this presenter's resources.
void ReadyTickle() override
[AI] Called during the ready tickle state to prepare for animation processing and add itself to the w...
~LegoLocomotionAnimPresenter() override
[AI] Destructor.
void FUN_1006d680(LegoAnimActor *p_actor, MxFloat p_value)
[AI] Binds a LegoAnimActor to the internal animation context and ROI mapping.
void EndAction() override
[AI] Ends the bound action/animation for this presenter, finalizing any running videos or related res...
MxResult AddToManager() override
[AI] Registers this presenter with manager systems and initializes additional ROI mapping state.
void PutFrame() override
[AI] Called to process/queue a frame for this presenter's active animation playback.
MxResult CreateAnim(MxStreamChunk *p_chunk) override
[AI] Creates an animation sequence from a stream chunk and initializes playback.
void StartingTickle() override
[AI] Called during the starting tickle state to dequeue and process any pending animation data chunks...
void StreamingTickle() override
[AI] Called during the streaming state to manage lifecycle and check if further processing is require...
[AI] Specialized pointer list that manages collections of LegoROI pointers, for ROI map management in...
const LegoChar * GetName() const
[AI] Gets this ROI's name.
LegoTreeNodeData * GetData()
[AI] Returns the data payload stored at this node (may be nullptr). [AI]
LegoTreeNode * GetRoot()
[AI] Returns a pointer to the root node of the tree. [AI]
virtual void Add(MxCore *p_object)
Adds an object (entity, presenter, ROI, etc.) to the appropriate world-managed list or set.
void Enter()
[AI] Acquires/gains entry to the critical section or mutex, blocking if not available.
void Leave()
[AI] Releases/leaves the critical section or mutex.
MxStreamChunk * PopData()
[AI] Pops the next available pending data chunk for consumption, moving it to the consumed list.
void FreeDataChunk(MxStreamChunk *p_chunk)
[AI] Frees (deletes) a data chunk if it's found in the consumed data list; also forcibly deletes sing...
MxStreamChunk * PeekData()
[AI] Returns but does not remove the first pending data chunk ("peek" operation).
MxU32 GetNumElements()
[AI]
void ProgressTickleState(TickleState p_tickleState)
[AI] Helper for advancing the presenter's tickle state and updating transition history.
MxDSAction * m_action
[AI] The associated action currently being presented by this presenter.
TickleState m_currentTickleState
[AI] Current state in the tickle lifecycle.
@ e_starting
[AI] In the process of starting playback/presentation.
@ e_streaming
[AI] Streaming or rendering actively.
MxCriticalSection m_criticalSection
[AI] Thread synchronization for presenter state and data.
MxCompositePresenter * m_compositePresenter
[AI] Owner composite presenter, if any.
void SendToCompositePresenter(MxOmni *p_omni)
[AI] Notifies a composite presenter (if one exists) that this presenter wishes to join a group.
[AI] Represents a streamable chunk of data, typically sourced from a media buffer and designed for no...
MxVariableTable is a specialized hash table for storing key/value string variables used by the LEGO I...
void SetVariable(const char *p_key, const char *p_value)
Sets a variable by key and value, replacing or updating if it exists.
void EndAction() override
Signals the end of the current playback action.
#define DECOMP_SIZE_ASSERT(T, S)
#define NULL
[AI] Null pointer value (C/C++ semantics).
#define FAILURE
[AI] Used to indicate a failed operation in result codes.
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.
LegoOmni * Lego()
[AI] Retrieves the global LegoOmni singleton instance, providing access to core subsystems.
#define AUTOLOCK(CS)
[AI] Macro for automatic locking using the MxAutoLock class. This macro instantiates an MxAutoLock ob...
MxVariableTable * VariableTable()
[AI] Returns the variable table used for script variables and global key/value state.