mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-25 17:18:16 -05:00
constructor is almost matching
This commit is contained in:
parent
579ee84049
commit
0ce6fab3d0
4 changed files with 58 additions and 2 deletions
18
LEGO1/legobackgroundcolor.cpp
Normal file
18
LEGO1/legobackgroundcolor.cpp
Normal 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)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -1,10 +1,13 @@
|
||||||
#ifndef LEGOBACKGROUNDCOLOR_H
|
#ifndef LEGOBACKGROUNDCOLOR_H
|
||||||
#define LEGOBACKGROUNDCOLOR_H
|
#define LEGOBACKGROUNDCOLOR_H
|
||||||
|
#include "mxstring.h"
|
||||||
class LegoBackgroundColor
|
#include "mxcore.h"
|
||||||
|
#include "mxbackgroundcolor.h"
|
||||||
|
class LegoBackgroundColor : public MxBackgroundColor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
__declspec(dllexport) LegoBackgroundColor(const char *, const char *);
|
__declspec(dllexport) LegoBackgroundColor(const char *, const char *);
|
||||||
|
void SetColorString(const char* colorString);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LEGOBACKGROUNDCOLOR_H
|
#endif // LEGOBACKGROUNDCOLOR_H
|
||||||
|
|
15
LEGO1/mxbackgroundcolor.cpp
Normal file
15
LEGO1/mxbackgroundcolor.cpp
Normal 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
20
LEGO1/mxbackgroundcolor.h
Normal 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
|
Loading…
Reference in a new issue