mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
Rename function
This commit is contained in:
parent
0a467c56b5
commit
8f244dc441
@ -3,6 +3,8 @@
|
||||
|
||||
#include "legoentity.h"
|
||||
|
||||
class LegoEventNotificationParam;
|
||||
|
||||
// VTABLE: LEGO1 0x100d5c88
|
||||
// SIZE 0x68
|
||||
class BuildingEntity : public LegoEntity {
|
||||
@ -25,7 +27,7 @@ class BuildingEntity : public LegoEntity {
|
||||
return !strcmp(p_name, BuildingEntity::ClassName()) || LegoEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
virtual MxLong VTable0x50(MxParam& p_param) = 0;
|
||||
virtual MxLong HandleClick(LegoEventNotificationParam& p_param) = 0;
|
||||
|
||||
// SYNTHETIC: LEGO1 0x10015010
|
||||
// BuildingEntity::`scalar deleting destructor'
|
||||
|
||||
@ -3,6 +3,8 @@
|
||||
|
||||
#include "buildingentity.h"
|
||||
|
||||
class LegoEventNotificationParam;
|
||||
|
||||
// VTABLE: LEGO1 0x100d48a8
|
||||
// SIZE 0x68
|
||||
class RaceStandsEntity : public BuildingEntity {
|
||||
@ -19,7 +21,7 @@ class RaceStandsEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, RaceStandsEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override;
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override;
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000f9e0
|
||||
// RaceStandsEntity::`scalar deleting destructor'
|
||||
@ -42,7 +44,7 @@ class BeachHouseEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, BeachHouseEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override;
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override;
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000f970
|
||||
// BeachHouseEntity::`scalar deleting destructor'
|
||||
@ -65,7 +67,7 @@ class PoliceEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, PoliceEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override; // vtable+0x50
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override; // vtable+0x50
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000f900
|
||||
// PoliceEntity::`scalar deleting destructor'
|
||||
@ -88,7 +90,7 @@ class InfoCenterEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, InfoCenterEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override; // vtable+0x50
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override; // vtable+0x50
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000f7b0
|
||||
// InfoCenterEntity::`scalar deleting destructor'
|
||||
@ -111,7 +113,7 @@ class HospitalEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, HospitalEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override; // vtable+0x50
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override; // vtable+0x50
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000f820
|
||||
// HospitalEntity::`scalar deleting destructor'
|
||||
@ -133,7 +135,7 @@ class CaveEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, CaveEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override;
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override;
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000fa50
|
||||
// CaveEntity::`scalar deleting destructor'
|
||||
@ -155,7 +157,7 @@ class JailEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, JailEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override;
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override;
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000fac0
|
||||
// JailEntity::`scalar deleting destructor'
|
||||
@ -178,7 +180,7 @@ class GasStationEntity : public BuildingEntity {
|
||||
return !strcmp(p_name, GasStationEntity::ClassName()) || BuildingEntity::IsA(p_name);
|
||||
}
|
||||
|
||||
MxLong VTable0x50(MxParam& p_param) override;
|
||||
MxLong HandleClick(LegoEventNotificationParam& p_param) override;
|
||||
|
||||
// SYNTHETIC: LEGO1 0x1000f890
|
||||
// GasStationEntity::`scalar deleting destructor'
|
||||
|
||||
@ -22,7 +22,7 @@ BuildingEntity::~BuildingEntity()
|
||||
MxLong BuildingEntity::Notify(MxParam& p_param)
|
||||
{
|
||||
if (((MxNotificationParam&) p_param).GetType() == c_notificationClick) {
|
||||
return VTable0x50(p_param);
|
||||
return HandleClick((LegoEventNotificationParam&) p_param);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
@ -24,7 +24,7 @@ DECOMP_SIZE_ASSERT(PoliceEntity, 0x68)
|
||||
DECOMP_SIZE_ASSERT(RaceStandsEntity, 0x68)
|
||||
|
||||
// FUNCTION: LEGO1 0x100150c0
|
||||
MxLong InfoCenterEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong InfoCenterEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
switch (GameState()->GetCurrentAct()) {
|
||||
case LegoGameState::Act::e_act1: {
|
||||
@ -62,7 +62,7 @@ MxLong InfoCenterEntity::VTable0x50(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100151d0
|
||||
MxLong GasStationEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong GasStationEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
if (FUN_1003ef60()) {
|
||||
Act1State* state = (Act1State*) GameState()->GetState("Act1State");
|
||||
@ -86,7 +86,7 @@ MxLong GasStationEntity::VTable0x50(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10015270
|
||||
MxLong HospitalEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong HospitalEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
if (FUN_1003ef60()) {
|
||||
Act1State* act1State = (Act1State*) GameState()->GetState("Act1State");
|
||||
@ -110,7 +110,7 @@ MxLong HospitalEntity::VTable0x50(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10015310
|
||||
MxLong PoliceEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong PoliceEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
if (FUN_1003ef60()) {
|
||||
Act1State* state = (Act1State*) GameState()->GetState("Act1State");
|
||||
@ -134,7 +134,7 @@ MxLong PoliceEntity::VTable0x50(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100153b0
|
||||
MxLong BeachHouseEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong BeachHouseEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
if (FUN_1003ef60()) {
|
||||
Act1State* state = (Act1State*) GameState()->GetState("Act1State");
|
||||
@ -155,7 +155,7 @@ MxLong BeachHouseEntity::VTable0x50(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10015450
|
||||
MxLong RaceStandsEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong RaceStandsEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
if (FUN_1003ef60()) {
|
||||
Act1State* state = (Act1State*) GameState()->GetState("Act1State");
|
||||
@ -176,14 +176,14 @@ MxLong RaceStandsEntity::VTable0x50(MxParam& p_param)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100154f0
|
||||
MxLong JailEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong JailEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10015520
|
||||
MxLong CaveEntity::VTable0x50(MxParam& p_param)
|
||||
MxLong CaveEntity::HandleClick(LegoEventNotificationParam& p_param)
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user