Skip to content

Commit

Permalink
Add all BETA10 ClassName() functions and vtables (#1258)
Browse files Browse the repository at this point in the history
* Add all BETA10 `ClassName()` functions and vtables

* Run formatter, fix copy error

* Fix copy error

* Add BETA10 library functions

---------

Co-authored-by: jonschz <[email protected]>
  • Loading branch information
jonschz and jonschz authored Dec 22, 2024
1 parent 276ad8d commit 3e6d789
Show file tree
Hide file tree
Showing 79 changed files with 220 additions and 2 deletions.
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/act2brick.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "legopathactor.h"

// VTABLE: LEGO1 0x100d9b60
// VTABLE: BETA10 0x101b85b8
// SIZE 0x194
class Act2Brick : public LegoPathActor {
public:
Expand All @@ -14,6 +15,7 @@ class Act2Brick : public LegoPathActor {
MxResult Tickle() override; // vtable+0x08

// FUNCTION: LEGO1 0x1007a360
// FUNCTION: BETA10 0x10013290
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0438
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/act2policestation.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
#include "legoentity.h"

// VTABLE: LEGO1 0x100d53a8
// VTABLE: BETA10 0x101bd570
// SIZE 0x68
class Act2PoliceStation : public LegoEntity {
public:
MxLong Notify(MxParam& p_param) override; // vtable+0x04

// FUNCTION: LEGO1 0x1000e200
// FUNCTION: BETA10 0x100a8e00
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f03fc
Expand Down
4 changes: 4 additions & 0 deletions LEGO1/lego/legoomni/include/act3.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ class Act3List : private list<Act3ListElement> {
};

// VTABLE: LEGO1 0x100d4fc8
// VTABLE: BETA10 0x101b89b8
// SIZE 0x0c
class Act3State : public LegoState {
public:
Act3State() { m_unk0x08 = 0; }

// FUNCTION: LEGO1 0x1000e300
// FUNCTION: BETA10 0x10017e10
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f03f0
Expand All @@ -79,6 +81,7 @@ class Act3State : public LegoState {
};

// VTABLE: LEGO1 0x100d9628
// VTABLE: BETA10 0x101b8940
// SIZE 0x4274
class Act3 : public LegoWorld {
public:
Expand All @@ -89,6 +92,7 @@ class Act3 : public LegoWorld {
MxResult Tickle() override; // vtable+0x08

// FUNCTION: LEGO1 0x10072510
// FUNCTION: BETA10 0x10017550
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f013c
Expand Down
3 changes: 3 additions & 0 deletions LEGO1/lego/legoomni/include/act3actors.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class LegoWorld;
// VTABLE: LEGO1 0x100d7668 LegoPathActor
// VTABLE: LEGO1 0x100d7738 LegoAnimActor
// VTABLE: BETA10 0x101b8a98 LegoPathActor
// VTABLE: BETA10 0x101b8b88 LegoAnimActor
// SIZE 0x178
class Act3Actor : public LegoAnimActor {
public:
Expand All @@ -30,6 +31,7 @@ class Act3Actor : public LegoAnimActor {
Act3Actor();

// FUNCTION: LEGO1 0x100431b0
// FUNCTION: BETA10 0x1001d320
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f03ac
Expand Down Expand Up @@ -145,6 +147,7 @@ class Act3Shark : public LegoAnimActor {
// FUNCTION: LEGO1 0x100430d0
const char* ClassName() const override // vtable+0x0c
{
// Does not exist in BETA10
// STRING: LEGO1 0x100f03a0
return "Act3Shark";
}
Expand Down
4 changes: 4 additions & 0 deletions LEGO1/lego/legoomni/include/ambulance.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
class MxEndActionNotificationParam;

// VTABLE: LEGO1 0x100d72a0
// VTABLE: BETA10 0x101b91a8
// SIZE 0x24
class AmbulanceMissionState : public LegoState {
public:
AmbulanceMissionState();

// FUNCTION: LEGO1 0x10037600
// FUNCTION: BETA10 0x100246c0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f00e8
Expand Down Expand Up @@ -100,6 +102,7 @@ class AmbulanceMissionState : public LegoState {
};

// VTABLE: LEGO1 0x100d71a8
// VTABLE: BETA10 0x101b8f70
// SIZE 0x184
class Ambulance : public IslePathActor {
public:
Expand All @@ -110,6 +113,7 @@ class Ambulance : public IslePathActor {
MxResult Tickle() override; // vtable+0x08

// FUNCTION: LEGO1 0x10035fa0
// FUNCTION: BETA10 0x100240b0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f03c4
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/bike.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
#include "islepathactor.h"

// VTABLE: LEGO1 0x100d9808
// VTABLE: BETA10 0x101b91e8
// SIZE 0x164
class Bike : public IslePathActor {
public:
Bike();

// FUNCTION: LEGO1 0x100766f0
// FUNCTION: BETA10 0x10024bd0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f03d0
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/buildingentity.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
class LegoEventNotificationParam;

// VTABLE: LEGO1 0x100d5c88
// VTABLE: BETA10 0x101b9320
// SIZE 0x68
class BuildingEntity : public LegoEntity {
public:
Expand All @@ -15,6 +16,7 @@ class BuildingEntity : public LegoEntity {
MxLong Notify(MxParam& p_param) override; // vtable+0x04

// FUNCTION: LEGO1 0x10014f20
// FUNCTION: BETA10 0x10025f50
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f07e8
Expand Down
16 changes: 16 additions & 0 deletions LEGO1/lego/legoomni/include/buildings.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
class LegoEventNotificationParam;

// VTABLE: LEGO1 0x100d48a8
// VTABLE: BETA10 0x101bd818
// SIZE 0x68
class RaceStandsEntity : public BuildingEntity {
// FUNCTION: LEGO1 0x1000efa0
// FUNCTION: BETA10 0x100a9820
const char* ClassName() const override // vtable+0x0c
{
// at LEGO1 0x100f0300, needs no annotation
Expand All @@ -28,10 +30,12 @@ class RaceStandsEntity : public BuildingEntity {
};

// VTABLE: LEGO1 0x100d4a18
// VTABLE: BETA10 0x101bd7b0
// SIZE 0x68
class BeachHouseEntity : public BuildingEntity {
public:
// FUNCTION: LEGO1 0x1000ee80
// FUNCTION: BETA10 0x100a96f0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0314
Expand All @@ -51,10 +55,12 @@ class BeachHouseEntity : public BuildingEntity {
};

// VTABLE: LEGO1 0x100d4ab0
// VTABLE: BETA10 0x101bd748
// SIZE 0x68
class PoliceEntity : public BuildingEntity {
public:
// FUNCTION: LEGO1 0x1000ed60
// FUNCTION: BETA10 0x100a95c0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0328
Expand All @@ -74,10 +80,12 @@ class PoliceEntity : public BuildingEntity {
};

// VTABLE: LEGO1 0x100d4b90
// VTABLE: BETA10 0x101bd610
// SIZE 0x68
class InfoCenterEntity : public BuildingEntity {
public:
// FUNCTION: LEGO1 0x1000ea00
// FUNCTION: BETA10 0x100a9230
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f035c
Expand All @@ -97,10 +105,12 @@ class InfoCenterEntity : public BuildingEntity {
};

// VTABLE: LEGO1 0x100d5068
// VTABLE: BETA10 0x101bd678
// SIZE 0x68
class HospitalEntity : public BuildingEntity {
public:
// FUNCTION: LEGO1 0x1000ec40
// FUNCTION: BETA10 0x100a9360
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0338
Expand All @@ -120,9 +130,11 @@ class HospitalEntity : public BuildingEntity {
};

// VTABLE: LEGO1 0x100d50c0
// VTABLE: BETA10 0x101bd880
// SIZE 0x68
class CaveEntity : public BuildingEntity {
// FUNCTION: LEGO1 0x1000f1e0
// FUNCTION: BETA10 0x100a9950
const char* ClassName() const override // vtable+0x0c
{
// at LEGO1 0x100f0300, needs no annotation
Expand All @@ -142,9 +154,11 @@ class CaveEntity : public BuildingEntity {
};

// VTABLE: LEGO1 0x100d5200
// VTABLE: BETA10 0x101bd8e8
// SIZE 0x68
class JailEntity : public BuildingEntity {
// FUNCTION: LEGO1 0x1000f0c0
// FUNCTION: BETA10 0x100a9a80
const char* ClassName() const override // vtable+0x0c
{
// at LEGO1 0x100f0300, needs no annotation
Expand All @@ -164,10 +178,12 @@ class JailEntity : public BuildingEntity {
};

// VTABLE: LEGO1 0x100d5258
// VTABLE: BETA10 0x101bd6e0
// SIZE 0x68
class GasStationEntity : public BuildingEntity {
public:
// FUNCTION: LEGO1 0x1000eb20
// FUNCTION: BETA10 0x100a9490
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0348
Expand Down
3 changes: 3 additions & 0 deletions LEGO1/lego/legoomni/include/bumpbouy.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

// VTABLE: LEGO1 0x100d6790 LegoPathActor
// VTABLE: LEGO1 0x100d6860 LegoAnimActor
// VTABLE: BETA10 0x101b9430 LegoPathActor
// VTABLE: BETA10 0x101b9520 LegoAnimActor
// SIZE 0x174
class BumpBouy : public LegoAnimActor {
public:
Expand All @@ -14,6 +16,7 @@ class BumpBouy : public LegoAnimActor {
MxLong Notify(MxParam& p_param) override; // vtable+0x04

// FUNCTION: LEGO1 0x100274f0
// FUNCTION: BETA10 0x10026790
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0394
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/doors.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
class LegoROI;

// VTABLE: LEGO1 0x100d4788
// VTABLE: BETA10 0x101bcfb8
// SIZE 0x1f8
class Doors : public LegoPathActor {
public:
Doors() : m_unk0x154(0), m_ltDoor(NULL), m_rtDoor(NULL), m_unk0x1f4(0) {}

// FUNCTION: LEGO1 0x1000e430
// FUNCTION: BETA10 0x100a7f20
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f03e8
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/dunebuggy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
#include "islepathactor.h"

// VTABLE: LEGO1 0x100d8f98
// VTABLE: BETA10 0x101b95c0
// SIZE 0x16c
class DuneBuggy : public IslePathActor {
public:
DuneBuggy();

// FUNCTION: LEGO1 0x10067c30
// FUNCTION: BETA10 0x100278a0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0410
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/elevatorbottom.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class LegoControlManagerNotificationParam;

// VTABLE: LEGO1 0x100d5f20
// VTABLE: BETA10 0x101b96f0
// SIZE 0xfc
class ElevatorBottom : public LegoWorld {
public:
Expand All @@ -17,6 +18,7 @@ class ElevatorBottom : public LegoWorld {
MxLong Notify(MxParam& p_param) override; // vtable+0x04

// FUNCTION: LEGO1 0x10017f20
// FUNCTION: BETA10 0x10028130
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f04ac
Expand Down
4 changes: 4 additions & 0 deletions LEGO1/lego/legoomni/include/gasstation.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class MxStillPresenter;

// VTABLE: LEGO1 0x100d46e0
// VTABLE: BETA10 0x101b9818
// SIZE 0x24
class GasStationState : public LegoState {
public:
Expand All @@ -21,6 +22,7 @@ class GasStationState : public LegoState {
GasStationState();

// FUNCTION: LEGO1 0x100061d0
// FUNCTION: BETA10 0x10029f50
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0174
Expand Down Expand Up @@ -54,6 +56,7 @@ class GasStationState : public LegoState {
};

// VTABLE: LEGO1 0x100d4650
// VTABLE: BETA10 0x101b97a0
// SIZE 0x128
class GasStation : public LegoWorld {
public:
Expand All @@ -64,6 +67,7 @@ class GasStation : public LegoWorld {
MxResult Tickle() override; // vtable+0x08

// FUNCTION: LEGO1 0x10004780
// FUNCTION: BETA10 0x10029d40
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0168
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/helicopter.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
class Act3;

// VTABLE: LEGO1 0x100d5418
// VTABLE: BETA10 0x101bcf98
// SIZE 0x0c
class HelicopterState : public LegoState {
public:
HelicopterState() : m_unk0x08(0) {}

// FUNCTION: LEGO1 0x1000e0d0
// FUNCTION: BETA10 0x100a7cc0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f0144
Expand Down
2 changes: 2 additions & 0 deletions LEGO1/lego/legoomni/include/historybook.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class MxStillPresenter;

// VTABLE: LEGO1 0x100da328
// VTABLE: BETA10 0x101b99b0
// SIZE 0x3e4
class HistoryBook : public LegoWorld {
public:
Expand All @@ -17,6 +18,7 @@ class HistoryBook : public LegoWorld {
MxLong Notify(MxParam& p_param) override; // vtable+0x04

// FUNCTION: LEGO1 0x10082390
// FUNCTION: BETA10 0x1002c1c0
const char* ClassName() const override // vtable+0x0c
{
// STRING: LEGO1 0x100f04bc
Expand Down
Loading

0 comments on commit 3e6d789

Please sign in to comment.