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-12-03 17:51:03 -05:00
|
|
|
// FUNCTION: BETA10 0x10024e37
|
2024-01-18 20:24:15 -05:00
|
|
|
MxLong BuildingEntity::Notify(MxParam& p_param)
|
|
|
|
{
|
2024-12-03 17:51:03 -05:00
|
|
|
MxNotificationParam& param = (MxNotificationParam&) p_param;
|
|
|
|
|
|
|
|
if (param.GetNotification() == c_notificationClick) {
|
2024-06-12 10:20:51 -04:00
|
|
|
return HandleClick((LegoEventNotificationParam&) p_param);
|
2024-03-02 17:11:03 -05:00
|
|
|
}
|
2024-01-18 20:24:15 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|