mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 08:41:16 +00:00
Implement SkateBoard::Create()
- one typecast is still not clear
This commit is contained in:
parent
0c672edb42
commit
0decfbbd66
@ -25,11 +25,21 @@ SkateBoard::~SkateBoard()
|
||||
NotificationManager()->Unregister(this);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10010000
|
||||
// FUNCTION: LEGO1 0x10010000
|
||||
MxResult SkateBoard::Create(MxDSAction& p_dsAction)
|
||||
{
|
||||
// TODO
|
||||
return SUCCESS;
|
||||
MxResult result = IslePathActor::Create(p_dsAction);
|
||||
if (result == SUCCESS) {
|
||||
this->m_world = CurrentWorld();
|
||||
this->m_world->Add(this);
|
||||
MxCore* findResult = CurrentWorld()->Find(*g_isleScript, 0x49d);
|
||||
if (findResult) {
|
||||
// TODO: There is most likely a typecast here, but I don't know to what.
|
||||
// The only applicable candidate at the moment is MxDSAction
|
||||
((MxU32*)findResult)[0x21] = (MxU32)this;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10010050
|
||||
|
||||
Loading…
Reference in New Issue
Block a user