Implement/match JailEntity::HandleClick and CaveEntity::HandleClick (#1025)

* Implement/match JailEntity::HandleClick and CaveEntity::HandleClick

* Fix
This commit is contained in:
Christian Semmler
2024-06-12 11:13:06 -04:00
committed by GitHub
parent 641d9f1b8b
commit abb4483e18
2 changed files with 79 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#ifndef LEGOUTILS_H
#define LEGOUTILS_H
#include "actionsfwd.h"
#include "decomp.h"
#include "extra.h"
#include "mxtypes.h"
@@ -33,6 +34,8 @@ class LegoPathActor;
class LegoROI;
class LegoTreeNode;
extern MxAtomId* g_isleScript;
LegoEntity* PickEntity(MxLong, MxLong);
LegoROI* PickROI(MxLong, MxLong);
MxS16 CountTotalTreeNodes(LegoTreeNode* p_node);
@@ -54,6 +57,14 @@ 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'