constructor is almost matching

This commit is contained in:
Misha 2023-06-24 20:38:10 +03:00
parent 579ee84049
commit 0ce6fab3d0
4 changed files with 58 additions and 2 deletions

View file

@ -0,0 +1,18 @@
#include "legobackgroundcolor.h"
#include "legoomni.h"
#include "legoutil.h"
// OFFSET: LEGO1 0x1003bfb0
LegoBackgroundColor::LegoBackgroundColor(const char* name, const char* colorString)
{
this->m_name.operator=(name);
this->m_name.ToUpperCase();
SetColorString(colorString);
}
void LegoBackgroundColor::SetColorString(const char* colorString)
{
}

View file

@ -1,10 +1,13 @@
#ifndef LEGOBACKGROUNDCOLOR_H
#define LEGOBACKGROUNDCOLOR_H
class LegoBackgroundColor
#include "mxstring.h"
#include "mxcore.h"
#include "mxbackgroundcolor.h"
class LegoBackgroundColor : public MxBackgroundColor
{
public:
__declspec(dllexport) LegoBackgroundColor(const char *, const char *);
void SetColorString(const char* colorString);
};
#endif // LEGOBACKGROUNDCOLOR_H

View file

@ -0,0 +1,15 @@
#include "mxbackgroundcolor.h"
#include "mxstring.h"
// OFFSET: LEGO1 0x1003bea0
MxString* MxBackgroundColor::GetColorString()
{
return &m_colorString;
}
// OFFSET: LEGO1 0x1003beb0
void MxBackgroundColor::SetColorString(const char* colorString)
{
this->m_colorString.operator=(colorString);
}

20
LEGO1/mxbackgroundcolor.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef MXBACKGROUNDCOLOR_H
#define MXACKGROUNDCOLOR_H
#include "mxstring.h"
#include "mxcore.h"
class MxBackgroundColor
{
public:
__declspec(dllexport) MxBackgroundColor(const char *, const char *);
MxBackgroundColor(){}
virtual MxString* GetColorString();
virtual void SetColorString(const char* colorString);
protected:
MxString m_name;
short m_unknown;
MxString m_colorString;
short m_unknown2;
};
#endif // MXBACKGROUNDCOLOR_H