Forward declare enum for C++11+

This commit is contained in:
Christian Semmler 2024-03-17 12:34:53 -04:00
parent c036d27d59
commit 285afb4f36
5 changed files with 30 additions and 6 deletions

View File

@ -10,8 +10,12 @@
namespace HospitalScript
{
#ifdef COMPAT_MODE
enum Script : int;
#else
enum Script;
}
#endif
} // namespace HospitalScript
// VTABLE: LEGO1 0x100d9730
// SIZE 0x12c

View File

@ -12,8 +12,12 @@ class LegoControlManagerEvent;
namespace InfomainScript
{
#ifdef COMPAT_MODE
enum Script : int;
#else
enum Script;
}
#endif
} // namespace InfomainScript
// SIZE 0x18
struct InfocenterMapEntry {

View File

@ -21,13 +21,21 @@ class Act1State;
namespace IsleScript
{
#ifdef COMPAT_MODE
enum Script : int;
#else
enum Script;
}
#endif
} // namespace IsleScript
namespace JukeboxScript
{
#ifdef COMPAT_MODE
enum Script : int;
#else
enum Script;
}
#endif
} // namespace JukeboxScript
// VTABLE: LEGO1 0x100d6fb8
// SIZE 0x140

View File

@ -28,8 +28,12 @@ class ViewManager;
namespace JukeboxScript
{
#ifdef COMPAT_MODE
enum Script : int;
#else
enum Script;
}
#endif
} // namespace JukeboxScript
extern MxBool g_isWorldActive;

View File

@ -7,8 +7,12 @@
namespace PoliceScript
{
#ifdef COMPAT_MODE
enum Script : int;
#else
enum Script;
}
#endif
} // namespace PoliceScript
// VTABLE: LEGO1 0x100d8af0
// SIZE 0x10