Isle
Loading...
Searching...
No Matches
mxeventpresenter.h
Go to the documentation of this file.
1#ifndef MXEVENTPRESENTER_H
2#define MXEVENTPRESENTER_H
3
4#include "decomp.h"
5#include "mxmediapresenter.h"
6
7// VTABLE: LEGO1 0x100dca88
8// SIZE 0x54
9
16public:
21
25 ~MxEventPresenter() override;
26
31 static const char* HandlerClassName()
32 {
33 // STRING: LEGO1 0x10101dcc
34 return "MxEventPresenter";
35 }
36
40 const char* ClassName() const override // vtable+0x0c
41 {
42 return HandlerClassName();
43 }
44
50 MxBool IsA(const char* p_name) const override // vtable+0x10
51 {
52 return !strcmp(p_name, MxEventPresenter::ClassName()) || MxMediaPresenter::IsA(p_name);
53 }
54
58 void ReadyTickle() override; // vtable+0x18
59
63 void StartingTickle() override; // vtable+0x1c
64
69 MxResult AddToManager() override; // vtable+0x34
70
74 void Destroy() override; // vtable+0x38
75
79 MxResult PutData() override; // vtable+0x4c
80
85 virtual void CopyData(MxStreamChunk* p_chunk); // vtable+0x5c
86
87 // SYNTHETIC: LEGO1 0x100c2d20
88 // MxEventPresenter::`scalar deleting destructor'
89
90private:
94 void Init();
95
100 MxU8* m_data; // 0x50
101};
102
103#endif // MXEVENTPRESENTER_H
[AI] Presenter for handling "Event" stream data, typically parsed from event actions in SI files.
MxEventPresenter()
[AI] Constructs an event presenter and initializes internal state.
MxResult PutData() override
[AI] If the event is a variable table command (event type == 2), parses and updates the variable tabl...
virtual void CopyData(MxStreamChunk *p_chunk)
[AI] Copies raw chunk data from a stream chunk (e.g., from a SI file), for use by the event presenter...
static const char * HandlerClassName()
[AI] Returns the static class identifier for this presenter ("MxEventPresenter").
void ReadyTickle() override
[AI] Processes event data in the ready state; copies the next chunk's data and prepares for parsing e...
~MxEventPresenter() override
[AI] Destructor, unregisters from event manager and releases memory.
void Destroy() override
[AI] Unregisters this presenter from the event manager and frees owned resources, including event dat...
MxResult AddToManager() override
[AI] Registers this presenter with the event manager for tickling and notification.
const char * ClassName() const override
[AI] Returns the class identifier of this presenter instance.
MxBool IsA(const char *p_name) const override
[AI] Checks if this object matches, or derives from, a class of the given name.
void StartingTickle() override
[AI] Processes "starting" state, transitioning to streaming if elapsed time has passed the chunk time...
[AI] Abstract base class for presenters that play back continuous media streams such as video or audi...
MxBool IsA(const char *p_name) const override
[AI] Returns TRUE if the provided class name matches this class or any of its parents.
[AI] Represents a streamable chunk of data, typically sourced from a media buffer and designed for no...
Definition: mxstreamchunk.h:19
#define override
Definition: compat.h:21
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
MxLong MxResult
[AI]
Definition: mxtypes.h:106
unsigned char MxU8
[AI]
Definition: mxtypes.h:8