CMysterio::CMysterio(void) and Mysterio_CreateMysterio

This commit is contained in:
krystalgamer 2024-05-17 17:49:47 +02:00
parent 8a986012b7
commit d321cc6772
2 changed files with 41 additions and 2 deletions

View File

@ -1,6 +1,40 @@
#include "mysterio.h"
#include "validate.h"
// @TODO
CMysterio::CMysterio(int*, int)
{
}
// @NotOk
// Globals
CMysterio::CMysterio(void)
{
this->field_37C = 0;
this->field_380 = 0;
this->field_384 = 0;
this->InitItem("mysterio");
this->mFlags |= 0x480;
this->field_3C = 0x54E0F0;
}
// @Ok
void Mysterio_CreateMysterio(const unsigned int *stack, unsigned int *result)
{
int* v2 = reinterpret_cast<int*>(*stack);
int v3 = static_cast<int>(stack[1]);
if (v2)
{
*result = reinterpret_cast<unsigned int>(new CMysterio(v2, v3));
}
else
{
*result = reinterpret_cast<unsigned int>(new CMysterio());
}
}
void validate_CMystFoot(void){
VALIDATE_SIZE(CMystFoot, 0x324);
@ -37,4 +71,4 @@ void validate_CSoftSpot(void){
VALIDATE(CSoftSpot, field_32c, 0x32c);
VALIDATE(CSoftSpot, field_330, 0x330);
VALIDATE(CSoftSpot, field_334, 0x334);
}
}

View File

@ -17,6 +17,10 @@ public:
class CMysterio : public CBaddy {
public:
EXPORT CMysterio(int*, int);
EXPORT CMysterio(void);
int field_324;
unsigned char padAfter324[0x4];
@ -54,4 +58,5 @@ class CMysterio : public CBaddy {
void validate_CMystFoot(void);
void validate_CMysterio(void);
void validate_CSoftSpot(void);
void validate_CSoftSpot(void);
EXPORT void Mysterio_CreateMysterio(const unsigned int *stack, unsigned int *result);