2023-06-19 01:36:07 -04:00
|
|
|
#include "mxomni.h"
|
|
|
|
|
2023-10-07 11:30:04 -04:00
|
|
|
#include "mxatomidcounter.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxautolocker.h"
|
2023-10-07 11:30:04 -04:00
|
|
|
#include "mxeventmanager.h"
|
2023-10-07 13:12:59 -04:00
|
|
|
#include "mxmusicmanager.h"
|
2023-10-07 11:30:04 -04:00
|
|
|
#include "mxnotificationmanager.h"
|
|
|
|
#include "mxobjectfactory.h"
|
|
|
|
#include "mxomnicreateparam.h"
|
|
|
|
#include "mxsoundmanager.h"
|
|
|
|
#include "mxstreamer.h"
|
|
|
|
#include "mxticklemanager.h"
|
|
|
|
#include "mxtimer.h"
|
|
|
|
#include "mxvideomanager.h"
|
|
|
|
|
2023-06-30 14:34:39 -04:00
|
|
|
// 0x101015b8
|
|
|
|
char g_hdPath[1024];
|
|
|
|
|
|
|
|
// 0x101019b8
|
|
|
|
char g_cdPath[1024];
|
|
|
|
|
|
|
|
// 0x10101db8
|
|
|
|
MxBool g_use3dSound;
|
|
|
|
|
2023-06-19 01:36:07 -04:00
|
|
|
// 0x101015b0
|
2023-10-24 19:38:27 -04:00
|
|
|
MxOmni* MxOmni::g_instance = NULL;
|
2023-06-19 01:36:07 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100159e0
|
|
|
|
void DeleteObjects(MxAtomId* p_id, MxS32 p_first, MxS32 p_last)
|
2023-06-19 02:19:40 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
MxDSAction action;
|
2023-06-19 02:19:40 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
action.SetAtomId(*p_id);
|
|
|
|
action.SetUnknown24(-2);
|
|
|
|
|
|
|
|
for (MxS32 l_first = p_first, l_last = p_last; l_first <= l_last; l_first++) {
|
|
|
|
action.SetObjectId(l_first);
|
|
|
|
DeleteObject(action);
|
|
|
|
}
|
2023-06-19 02:19:40 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x10058a90
|
|
|
|
MxBool MxOmni::IsTimerRunning()
|
2023-06-19 02:19:40 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return m_timerRunning;
|
2023-06-19 02:19:40 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acea0
|
|
|
|
MxObjectFactory* ObjectFactory()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetObjectFactory();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100aceb0
|
|
|
|
MxNotificationManager* NotificationManager()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetNotificationManager();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acec0
|
|
|
|
MxTickleManager* TickleManager()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetTickleManager();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100aced0
|
|
|
|
MxTimer* Timer()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetTimer();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acee0
|
|
|
|
MxAtomIdCounterSet* AtomIdCounterSet()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetAtomIdCounterSet();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acef0
|
|
|
|
MxStreamer* Streamer()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetStreamer();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acf00
|
|
|
|
MxSoundManager* MSoundManager()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetSoundManager();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acf10
|
|
|
|
MxVideoManager* MVideoManager()
|
2023-09-13 03:44:03 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetVideoManager();
|
2023-09-13 03:44:03 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acf20
|
|
|
|
MxVariableTable* VariableTable()
|
2023-10-09 06:31:36 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetVariableTable();
|
2023-10-09 06:31:36 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acf30
|
|
|
|
MxMusicManager* MusicManager()
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetMusicManager();
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acf40
|
|
|
|
MxEventManager* EventManager()
|
2023-06-30 14:34:39 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->GetEventManager();
|
2023-06-30 14:34:39 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100acf70
|
|
|
|
MxResult DeleteObject(MxDSAction& p_dsAction)
|
2023-06-30 14:34:39 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return MxOmni::GetInstance()->DeleteObject(p_dsAction);
|
2023-06-30 14:34:39 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100aef10
|
|
|
|
MxOmni::MxOmni()
|
2023-06-30 14:34:39 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
Init();
|
2023-06-30 14:34:39 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100aefb0
|
|
|
|
MxEntity* MxOmni::FindWorld(const char*, MxS32, MxPresenter*)
|
2023-06-30 14:34:39 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return NULL;
|
2023-06-30 14:34:39 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100aefc0
|
|
|
|
void MxOmni::NotifyCurrentEntity(MxNotificationParam* p_param)
|
2023-06-30 14:34:39 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100aeff0
|
|
|
|
MxOmni::~MxOmni()
|
2023-06-30 14:34:39 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
Destroy();
|
2023-06-30 14:34:39 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100af080
|
|
|
|
void MxOmni::Init()
|
2023-06-19 01:36:07 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
m_windowHandle = NULL;
|
|
|
|
m_objectFactory = NULL;
|
|
|
|
m_variableTable = NULL;
|
|
|
|
m_tickleManager = NULL;
|
|
|
|
m_notificationManager = NULL;
|
|
|
|
m_videoManager = NULL;
|
|
|
|
m_soundManager = NULL;
|
|
|
|
m_musicManager = NULL;
|
|
|
|
m_eventManager = NULL;
|
|
|
|
m_timer = NULL;
|
|
|
|
m_streamer = NULL;
|
|
|
|
m_atomIdCounterSet = NULL;
|
|
|
|
m_timerRunning = NULL;
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100af0b0
|
2023-10-24 19:38:27 -04:00
|
|
|
void MxOmni::SetInstance(MxOmni* instance)
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
g_instance = instance;
|
2023-06-19 01:36:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100af0c0
|
2023-10-24 19:38:27 -04:00
|
|
|
MxResult MxOmni::Create(MxOmniCreateParam& p)
|
|
|
|
{
|
|
|
|
MxResult result = FAILURE;
|
|
|
|
|
|
|
|
if (!(m_atomIdCounterSet = new MxAtomIdCounterSet()))
|
|
|
|
goto done;
|
|
|
|
|
|
|
|
m_mediaPath = p.GetMediaPath();
|
|
|
|
m_windowHandle = p.GetWindowHandle();
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateObjectFactory()) {
|
|
|
|
if (!(m_objectFactory = new MxObjectFactory()))
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateVariableTable()) {
|
|
|
|
if (!(m_variableTable = new MxVariableTable()))
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateTimer()) {
|
|
|
|
if (!(m_timer = new MxTimer()))
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateTickleManager()) {
|
|
|
|
if (!(m_tickleManager = new MxTickleManager()))
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateNotificationManager()) {
|
|
|
|
if (m_notificationManager = new MxNotificationManager()) {
|
|
|
|
if (m_notificationManager->Create(100, 0) != SUCCESS)
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateStreamer()) {
|
|
|
|
if (!(m_streamer = new MxStreamer()) || m_streamer->Create() != SUCCESS)
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateVideoManager()) {
|
|
|
|
if (m_videoManager = new MxVideoManager()) {
|
|
|
|
if (m_videoManager->Create(p.GetVideoParam(), 100, 0) != SUCCESS) {
|
|
|
|
delete m_videoManager;
|
|
|
|
m_videoManager = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateSoundManager()) {
|
|
|
|
if (m_soundManager = new MxSoundManager()) {
|
|
|
|
if (m_soundManager->Create(10, 0) != SUCCESS) {
|
|
|
|
delete m_soundManager;
|
|
|
|
m_soundManager = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateMusicManager()) {
|
|
|
|
if (m_musicManager = new MxMusicManager()) {
|
|
|
|
if (m_musicManager->Create(50, 0) != SUCCESS) {
|
|
|
|
delete m_musicManager;
|
|
|
|
m_musicManager = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p.CreateFlags().CreateEventManager()) {
|
|
|
|
if (m_eventManager = new MxEventManager()) {
|
|
|
|
if (m_eventManager->Create(50, 0) != SUCCESS) {
|
|
|
|
delete m_eventManager;
|
|
|
|
m_eventManager = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
result = SUCCESS;
|
2023-10-14 20:49:07 -04:00
|
|
|
done:
|
2023-10-24 19:38:27 -04:00
|
|
|
if (result != SUCCESS)
|
|
|
|
Destroy();
|
2023-10-07 14:05:45 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
return result;
|
2023-06-19 01:36:07 -04:00
|
|
|
}
|
2023-06-19 02:19:40 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100afe90
|
|
|
|
void MxOmni::Destroy()
|
|
|
|
{
|
2023-10-25 16:51:59 -04:00
|
|
|
{
|
|
|
|
MxDSAction action;
|
|
|
|
action.SetObjectId(-1);
|
|
|
|
action.SetUnknown24(-2);
|
|
|
|
DeleteObject(action);
|
|
|
|
}
|
2023-10-24 19:38:27 -04:00
|
|
|
|
|
|
|
// TODO: private members
|
|
|
|
if (m_notificationManager) {
|
2023-10-25 16:51:59 -04:00
|
|
|
while (m_notificationManager->GetQueue()) {
|
|
|
|
if (m_notificationManager->GetQueue()->size() == 0)
|
|
|
|
break;
|
|
|
|
m_notificationManager->Tickle();
|
|
|
|
}
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-10-25 16:51:59 -04:00
|
|
|
m_notificationManager->SetActive(FALSE);
|
|
|
|
}
|
2023-10-24 19:38:27 -04:00
|
|
|
|
|
|
|
delete m_eventManager;
|
|
|
|
delete m_soundManager;
|
|
|
|
delete m_musicManager;
|
|
|
|
delete m_videoManager;
|
|
|
|
delete m_streamer;
|
|
|
|
delete m_timer;
|
|
|
|
delete m_objectFactory;
|
|
|
|
delete m_variableTable;
|
|
|
|
delete m_notificationManager;
|
|
|
|
delete m_tickleManager;
|
|
|
|
|
|
|
|
// There could be a tree/iterator function that does this inline
|
|
|
|
if (m_atomIdCounterSet) {
|
|
|
|
while (!m_atomIdCounterSet->empty()) {
|
|
|
|
// Pop each node and delete its value
|
|
|
|
MxAtomIdCounterSet::iterator begin = m_atomIdCounterSet->begin();
|
|
|
|
MxAtomIdCounter* value = *begin;
|
|
|
|
m_atomIdCounterSet->erase(begin);
|
|
|
|
delete value;
|
|
|
|
}
|
|
|
|
delete m_atomIdCounterSet;
|
|
|
|
}
|
2023-10-25 16:51:59 -04:00
|
|
|
Init();
|
2023-06-19 02:19:40 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0090
|
|
|
|
MxResult MxOmni::Start(MxDSAction* p_dsAction)
|
2023-06-19 02:19:40 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
MxResult result = FAILURE;
|
|
|
|
if (p_dsAction->GetAtomId().GetInternal() != NULL && p_dsAction->GetObjectId() != -1 && m_streamer != NULL) {
|
|
|
|
result = m_streamer->FUN_100b99b0(p_dsAction);
|
|
|
|
}
|
2023-10-07 14:05:45 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
return result;
|
2023-10-07 14:05:45 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b00c0 STUB
|
|
|
|
MxResult MxOmni::DeleteObject(MxDSAction& p_dsAction)
|
2023-10-07 14:05:45 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
// TODO
|
2023-10-24 19:38:27 -04:00
|
|
|
return FAILURE;
|
2023-06-19 02:19:40 -04:00
|
|
|
}
|
2023-06-19 04:34:58 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b00e0 STUB
|
|
|
|
void MxOmni::Vtable0x2c()
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
// TODO
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0680
|
|
|
|
MxOmni* MxOmni::GetInstance()
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return g_instance;
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0690
|
|
|
|
void MxOmni::DestroyInstance()
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
if (g_instance != NULL) {
|
|
|
|
delete g_instance;
|
|
|
|
g_instance = NULL;
|
|
|
|
}
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b07f0
|
|
|
|
MxLong MxOmni::Notify(MxParam& p)
|
2023-06-19 04:34:58 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
MxAutoLocker lock(&this->m_criticalsection);
|
|
|
|
|
|
|
|
if (((MxNotificationParam&) p).GetNotification() != c_notificationEndAction)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
return HandleNotificationType2(p);
|
2023-06-19 04:34:58 -04:00
|
|
|
}
|
2023-06-29 13:02:47 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0880 STUB
|
|
|
|
MxResult MxOmni::HandleNotificationType2(MxParam& p_param)
|
2023-08-16 13:09:44 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
// TODO STUB
|
|
|
|
return FAILURE;
|
2023-08-16 13:09:44 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0900
|
|
|
|
const char* MxOmni::GetHD()
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return g_hdPath;
|
2023-10-07 09:05:44 -04:00
|
|
|
}
|
2023-06-29 13:02:47 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0910
|
|
|
|
void MxOmni::SetHD(const char* p_hd)
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
strcpy(g_hdPath, p_hd);
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0940
|
|
|
|
const char* MxOmni::GetCD()
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return g_cdPath;
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0950
|
|
|
|
void MxOmni::SetCD(const char* p_cd)
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
strcpy(g_cdPath, p_cd);
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0980
|
|
|
|
MxBool MxOmni::IsSound3D()
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
return g_use3dSound;
|
2023-06-29 13:02:47 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0990
|
|
|
|
void MxOmni::SetSound3D(MxBool p_3dsound)
|
2023-06-29 13:02:47 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
g_use3dSound = p_3dsound;
|
2023-10-07 09:05:44 -04:00
|
|
|
}
|
2023-10-22 10:11:46 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b09a0
|
|
|
|
MxBool MxOmni::DoesEntityExist(MxDSAction& p_dsAction)
|
2023-10-22 10:11:46 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
if (m_streamer->FUN_100b9b30(p_dsAction)) {
|
|
|
|
MxNotificationPtrList* queue = m_notificationManager->GetQueue();
|
|
|
|
|
|
|
|
if (!queue || queue->size() == 0)
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
return FALSE;
|
2023-10-23 07:16:21 -04:00
|
|
|
}
|
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b09d0
|
|
|
|
void MxOmni::StartTimer()
|
2023-10-23 07:16:21 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
if (m_timerRunning == FALSE && m_timer != NULL && m_soundManager != NULL) {
|
|
|
|
m_timer->Start();
|
2023-11-24 12:09:53 -05:00
|
|
|
m_soundManager->Pause();
|
2023-11-21 03:44:45 -05:00
|
|
|
m_timerRunning = TRUE;
|
|
|
|
}
|
|
|
|
}
|
2023-10-23 07:16:21 -04:00
|
|
|
|
2023-11-21 03:44:45 -05:00
|
|
|
// OFFSET: LEGO1 0x100b0a00
|
|
|
|
void MxOmni::StopTimer()
|
|
|
|
{
|
|
|
|
if (m_timerRunning != FALSE && m_timer != NULL && m_soundManager != NULL) {
|
|
|
|
m_timer->Stop();
|
2023-11-24 12:09:53 -05:00
|
|
|
m_soundManager->Resume();
|
2023-11-21 03:44:45 -05:00
|
|
|
m_timerRunning = FALSE;
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-10-23 07:16:21 -04:00
|
|
|
}
|