mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
* Fix remaining vtordisp issues (#1016) * Fix LegoRaceActor * Fix LegoRaceMap * Fix LegoCarRaceActor * Fix LegoJetskiRaceActor * Fix LegoJetski * Fix LegoRaceCar * Downgrade orig addr unique message to debug * Implement/match Ambulance::HandleEndAction (#1018) * Implement/match Ambulance::HandleClick (#1019) * Implement/match Ambulance::HandleClick * Remove junk * Add Ambulance::FUN_10036e60 * Implement/match Ambulance::Tickle (#1021) * Match LegoMeterPresenter::ParseExtra (#1022) * Match LegoMeterPresenter::ParseExtra * Add LegoMeterPresenter to factory * Add call to parent * Add missing TODO * Implement/match Ambulance::ActivateSceneActions (#1023) * Fix CaveEntity class (#1024) * Fix CaveEntity class * Rename function * Implement/match JailEntity::HandleClick and CaveEntity::HandleClick (#1025) * Implement/match JailEntity::HandleClick and CaveEntity::HandleClick * Fix * Add remaining classes, implement/match LegoObjectFactory (#1026) * Add missing classes * Match LegoObjectFactory * Remove semicolon * Add symbol * Fix * Implement/match Ambulance::VTable0x70 (#1027) * Implement/match Ambulance::HandleButtonDown (#1028) * Implement/match Ambulance::HandlePathStruct (#1029) * Implement/match Ambulance::HandlePathStruct * Add annotation * Implement/match remaining Ambulance functions (#1030) * Fix camera glitch (#1031) * Implement LegoAnimScene::FUN_1009f490 (#1032) * Implement LegoAnimScene::FUN_1009f490 * Update legoanim.cpp * Update legoanim.cpp * Update legoanim.cpp * Bugfix for LegoMeterPresenter::DrawMeter (#1033) * feat: Implement several ::Serialize functions (#1017) * feat: Implement many ::Serialize functions * address review comments, part 1 [skip ci] * address review comments, part 2 [skip ci] * review comments (final part) * refactor: Remove Read/Write duplication * fix merge conflict * Match PizzeriaState::Serialize again * Remove unused variable, add LegoVehicleBuildState::Serialize * Implement AnimState::Serialize * fix: Conform with naming scheme * refactor: change names back * refactor: int to MxS32 --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com> --------- Co-authored-by: MS <disinvite@users.noreply.github.com> Co-authored-by: jonschz <17198703+jonschz@users.noreply.github.com> Co-authored-by: jonschz <jonschz@users.noreply.github.com>
73 lines
2.0 KiB
C++
73 lines
2.0 KiB
C++
#ifndef LEGOUTILS_H
|
|
#define LEGOUTILS_H
|
|
|
|
#include "actionsfwd.h"
|
|
#include "decomp.h"
|
|
#include "extra.h"
|
|
#include "mxtypes.h"
|
|
|
|
#include <windows.h>
|
|
|
|
#define WM_ISLE_SETCURSOR 0x5400
|
|
|
|
enum Cursor {
|
|
e_cursorArrow = 0,
|
|
e_cursorBusy,
|
|
e_cursorNo,
|
|
e_cursorUnused3,
|
|
e_cursorUnused4,
|
|
e_cursorUnused5,
|
|
e_cursorUnused6,
|
|
e_cursorUnused7,
|
|
e_cursorUnused8,
|
|
e_cursorUnused9,
|
|
e_cursorUnused10,
|
|
e_cursorNone
|
|
};
|
|
|
|
class MxAtomId;
|
|
class LegoEntity;
|
|
class LegoFile;
|
|
class LegoAnimPresenter;
|
|
class LegoNamedTexture;
|
|
class LegoPathActor;
|
|
class LegoROI;
|
|
class LegoTreeNode;
|
|
|
|
extern MxAtomId* g_isleScript;
|
|
|
|
LegoEntity* PickEntity(MxLong, MxLong);
|
|
LegoROI* PickROI(MxLong, MxLong);
|
|
LegoROI* PickParentROI(MxLong p_a, MxLong p_b);
|
|
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node);
|
|
void FUN_1003e050(LegoAnimPresenter* p_presenter);
|
|
Extra::ActionType MatchActionString(const char*);
|
|
void InvokeAction(Extra::ActionType p_actionId, const MxAtomId& p_pAtom, MxS32 p_targetEntityId, LegoEntity* p_sender);
|
|
void SetCameraControllerFromIsle();
|
|
void ConvertHSVToRGB(float p_h, float p_s, float p_v, float* p_rOut, float* p_bOut, float* p_gOut);
|
|
void PlayCamAnim(LegoPathActor* p_actor, MxBool p_unused, MxU32 p_location, MxBool p_bool);
|
|
void FUN_1003eda0();
|
|
MxBool RemoveFromCurrentWorld(const MxAtomId& p_atomId, MxS32 p_id);
|
|
void EnableAnimations(MxBool p_enable);
|
|
void SetAppCursor(Cursor p_cursor);
|
|
MxBool FUN_1003ef60();
|
|
MxBool RemoveFromWorld(MxAtomId& p_entityAtom, MxS32 p_entityId, MxAtomId& p_worldAtom, MxS32 p_worldEntityId);
|
|
MxS32 UpdateLightPosition(MxS32 p_increase);
|
|
void SetLightPosition(MxS32 p_index);
|
|
LegoNamedTexture* ReadNamedTexture(LegoFile* p_file);
|
|
void FUN_1003f540(LegoFile* p_file, const char* p_filename);
|
|
void WriteNamedTexture(LegoFile* p_file, LegoNamedTexture* p_texture);
|
|
|
|
// FUNCTION: BETA10 0x100260a0
|
|
inline void StartIsleAction(IsleScript::Script p_objectId)
|
|
{
|
|
if (p_objectId != (IsleScript::Script) -1) {
|
|
InvokeAction(Extra::e_start, *g_isleScript, p_objectId, NULL);
|
|
}
|
|
}
|
|
|
|
// SYNTHETIC: LEGO1 0x10034b40
|
|
// LegoTexture::`scalar deleting destructor'
|
|
|
|
#endif // LEGOUTILS_H
|