2023-06-29 04:10:08 -04:00
|
|
|
#include "buildingentity.h"
|
|
|
|
|
2024-03-09 15:07:52 -05:00
|
|
|
#include "mxmisc.h"
|
2024-03-02 17:11:03 -05:00
|
|
|
#include "mxnotificationmanager.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
#include "mxnotificationparam.h"
|
2024-03-02 17:11:03 -05:00
|
|
|
|
2024-03-22 21:30:58 -04:00
|
|
|
DECOMP_SIZE_ASSERT(BuildingEntity, 0x68)
|
|
|
|
|
2024-03-02 17:11:03 -05:00
|
|
|
// FUNCTION: LEGO1 0x10014e20
|
2023-06-29 04:10:08 -04:00
|
|
|
BuildingEntity::BuildingEntity()
|
|
|
|
{
|
2024-03-02 17:11:03 -05:00
|
|
|
NotificationManager()->Register(this);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2024-03-02 17:11:03 -05:00
|
|
|
// FUNCTION: LEGO1 0x10015030
|
2023-06-29 04:10:08 -04:00
|
|
|
BuildingEntity::~BuildingEntity()
|
|
|
|
{
|
2024-03-02 17:11:03 -05:00
|
|
|
NotificationManager()->Unregister(this);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
2024-01-18 20:24:15 -05:00
|
|
|
|
2024-03-02 17:11:03 -05:00
|
|
|
// FUNCTION: LEGO1 0x100150a0
|
2024-01-18 20:24:15 -05:00
|
|
|
MxLong BuildingEntity::Notify(MxParam& p_param)
|
|
|
|
{
|
2024-05-30 09:54:24 -04:00
|
|
|
if (((MxNotificationParam&) p_param).GetType() == c_notificationClick) {
|
2024-03-02 17:11:03 -05:00
|
|
|
return VTable0x50(p_param);
|
|
|
|
}
|
2024-01-18 20:24:15 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|