2023-06-19 04:34:58 -04:00
|
|
|
#ifndef LEGOUTIL_H
|
|
|
|
#define LEGOUTIL_H
|
|
|
|
|
2023-09-27 15:16:46 -04:00
|
|
|
#include "extra.h"
|
2024-02-02 20:03:52 -05:00
|
|
|
#include "misc/legostorage.h"
|
|
|
|
#include "misc/legotexture.h"
|
|
|
|
#include "mxstring.h"
|
2023-12-14 11:50:29 -05:00
|
|
|
#include "mxtypes.h"
|
2024-01-08 06:45:07 -05:00
|
|
|
#include "mxutil.h"
|
2023-09-27 15:16:46 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include <windows.h>
|
|
|
|
|
2024-01-08 06:45:07 -05:00
|
|
|
class MxAtomId;
|
|
|
|
class LegoEntity;
|
2024-01-26 17:52:03 -05:00
|
|
|
class LegoAnimPresenter;
|
2023-10-07 14:07:26 -04:00
|
|
|
|
2024-02-02 20:03:52 -05:00
|
|
|
class LegoTexture;
|
|
|
|
|
|
|
|
// SIZE 0x14
|
|
|
|
class NamedTexture {
|
|
|
|
public:
|
|
|
|
~NamedTexture() { delete m_texture; }
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003f920
|
|
|
|
const MxString* GetName() const { return &m_name; }
|
|
|
|
|
|
|
|
LegoTexture* GetTexture() { return m_texture; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
MxString m_name; // 0x00
|
|
|
|
LegoTexture* m_texture; // 0x04
|
|
|
|
};
|
|
|
|
|
2024-01-26 17:52:03 -05:00
|
|
|
void FUN_1003e050(LegoAnimPresenter* p_presenter);
|
2024-01-17 11:53:53 -05:00
|
|
|
Extra::ActionType MatchActionString(const char*);
|
|
|
|
void InvokeAction(Extra::ActionType p_actionId, MxAtomId& p_pAtom, int p_targetEntityId, LegoEntity* p_sender);
|
2023-12-13 05:48:14 -05:00
|
|
|
void ConvertHSVToRGB(float p_h, float p_s, float p_v, float* p_rOut, float* p_bOut, float* p_gOut);
|
2023-12-29 10:22:18 -05:00
|
|
|
MxBool FUN_1003ee00(MxAtomId& p_atomId, MxS32 p_id);
|
2023-12-15 18:11:34 -05:00
|
|
|
void FUN_1003ef00(MxBool);
|
2023-09-29 12:42:15 -04:00
|
|
|
void SetAppCursor(WPARAM p_wparam);
|
2023-12-14 11:50:29 -05:00
|
|
|
MxBool FUN_1003ef60();
|
2024-01-31 07:34:36 -05:00
|
|
|
MxBool RemoveFromWorld(MxAtomId& p_atomId1, MxS32 p_id1, MxAtomId& p_atomId2, MxS32 p_id2);
|
2024-02-02 20:03:52 -05:00
|
|
|
NamedTexture* ReadNamedTexture(LegoFile* p_file);
|
|
|
|
void FUN_1003f540(LegoFile* p_file, const char* p_filename);
|
|
|
|
void WriteNamedTexture(LegoFile* p_file, NamedTexture* p_texture);
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10034b40
|
|
|
|
// LegoTexture::`scalar deleting destructor'
|
2023-06-30 19:33:59 -04:00
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // LEGOUTIL_H
|