2024-03-09 15:07:52 -05:00
|
|
|
#ifndef LEGOUTILS_H
|
|
|
|
#define LEGOUTILS_H
|
2023-06-19 04:34:58 -04:00
|
|
|
|
2024-05-04 10:13:05 -04:00
|
|
|
#include "decomp.h"
|
2023-09-27 15:16:46 -04:00
|
|
|
#include "extra.h"
|
2023-12-14 11:50:29 -05:00
|
|
|
#include "mxtypes.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-05-03 12:19:12 -04:00
|
|
|
class LegoFile;
|
2024-01-26 17:52:03 -05:00
|
|
|
class LegoAnimPresenter;
|
2024-03-09 10:49:13 -05:00
|
|
|
class LegoNamedTexture;
|
2024-05-21 15:03:50 -04:00
|
|
|
class LegoPathActor;
|
2024-05-04 08:06:32 -04:00
|
|
|
class LegoROI;
|
2024-04-14 11:19:16 -04:00
|
|
|
class LegoTreeNode;
|
2024-02-02 20:03:52 -05:00
|
|
|
|
2024-05-04 08:06:32 -04:00
|
|
|
LegoEntity* PickEntity(MxLong, MxLong);
|
|
|
|
LegoROI* PickROI(MxLong, MxLong);
|
2024-04-14 11:19:16 -04:00
|
|
|
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node);
|
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*);
|
2024-04-22 08:24:00 -04:00
|
|
|
void InvokeAction(Extra::ActionType p_actionId, const MxAtomId& p_pAtom, MxS32 p_targetEntityId, LegoEntity* p_sender);
|
2024-02-24 08:55:00 -05:00
|
|
|
void SetCameraControllerFromIsle();
|
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);
|
2024-05-21 15:03:50 -04:00
|
|
|
void PlayCamAnim(LegoPathActor* p_actor, MxBool p_unused, MxU32 p_location, MxBool p_bool);
|
2024-04-12 07:02:32 -04:00
|
|
|
void FUN_1003eda0();
|
2024-04-22 08:24:00 -04:00
|
|
|
MxBool RemoveFromCurrentWorld(const MxAtomId& p_atomId, MxS32 p_id);
|
2024-05-17 21:42:21 -04:00
|
|
|
void FUN_1003ef00(MxBool p_enable);
|
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-03-23 13:06:31 -04:00
|
|
|
MxBool RemoveFromWorld(MxAtomId& p_entityAtom, MxS32 p_entityId, MxAtomId& p_worldAtom, MxS32 p_worldEntityId);
|
2024-03-29 16:42:39 -04:00
|
|
|
MxS32 UpdateLightPosition(MxS32 p_increase);
|
|
|
|
void SetLightPosition(MxS32 p_index);
|
2024-03-09 10:49:13 -05:00
|
|
|
LegoNamedTexture* ReadNamedTexture(LegoFile* p_file);
|
2024-02-02 20:03:52 -05:00
|
|
|
void FUN_1003f540(LegoFile* p_file, const char* p_filename);
|
2024-03-09 10:49:13 -05:00
|
|
|
void WriteNamedTexture(LegoFile* p_file, LegoNamedTexture* p_texture);
|
2024-02-02 20:03:52 -05:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10034b40
|
|
|
|
// LegoTexture::`scalar deleting destructor'
|
2023-06-30 19:33:59 -04:00
|
|
|
|
2024-03-09 15:07:52 -05:00
|
|
|
#endif // LEGOUTILS_H
|