mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-23 08:08:03 -05:00
57d5949d84
* Implement some Act1State functions * ci: push fix commits to pr * ci fix * Show diffs generated by clang-format * Run clang-format * Fix naming * re-use _countof + add parentheses * Fix naming * Use MxS32 * Annotate Act1State::NamedPlane::~NamedPlane * Apply suggestions * Read and Write Mx3DPointFloat's * Annotations, spacing * Add Mx3DPointFloat copy ctor, match some functions * Fix WriteVector3 * Adding more spacing for readability * Use MxResult as a return type for Serialize --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifndef LEGOUTIL_H
|
|
#define LEGOUTIL_H
|
|
|
|
#include "extra.h"
|
|
#include "misc/legostorage.h"
|
|
#include "misc/legotexture.h"
|
|
#include "mxstring.h"
|
|
#include "mxtypes.h"
|
|
#include "mxutil.h"
|
|
|
|
#include <windows.h>
|
|
|
|
class MxAtomId;
|
|
class LegoEntity;
|
|
class LegoAnimPresenter;
|
|
|
|
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
|
|
};
|
|
|
|
void FUN_1003e050(LegoAnimPresenter* p_presenter);
|
|
Extra::ActionType MatchActionString(const char*);
|
|
void InvokeAction(Extra::ActionType p_actionId, MxAtomId& p_pAtom, int p_targetEntityId, LegoEntity* p_sender);
|
|
void ConvertHSVToRGB(float p_h, float p_s, float p_v, float* p_rOut, float* p_bOut, float* p_gOut);
|
|
MxBool FUN_1003ee00(MxAtomId& p_atomId, MxS32 p_id);
|
|
void FUN_1003ef00(MxBool);
|
|
void SetAppCursor(WPARAM p_wparam);
|
|
MxBool FUN_1003ef60();
|
|
MxBool RemoveFromWorld(MxAtomId& p_atomId1, MxS32 p_id1, MxAtomId& p_atomId2, MxS32 p_id2);
|
|
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'
|
|
|
|
#endif // LEGOUTIL_H
|