mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
lego1: implement MxTimer + dependencies
This commit is contained in:
15
LEGO1/mxomni.cpp
Normal file
15
LEGO1/mxomni.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "mxomni.h"
|
||||
|
||||
MxResult MxOmni::Create(const MxOmniCreateParam &p)
|
||||
{
|
||||
if (p.CreateFlags().CreateTimer())
|
||||
{
|
||||
MxTimer *timer = new MxTimer();
|
||||
this->m_Timer = timer;
|
||||
|
||||
if (timer == NULL)
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user