mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-12 17:03:26 +00:00
30 lines
619 B
C++
30 lines
619 B
C++
#include "buildingentity.h"
|
|
|
|
#include "mxmisc.h"
|
|
#include "mxnotificationmanager.h"
|
|
#include "mxnotificationparam.h"
|
|
|
|
DECOMP_SIZE_ASSERT(BuildingEntity, 0x68)
|
|
|
|
// FUNCTION: LEGO1 0x10014e20
|
|
BuildingEntity::BuildingEntity()
|
|
{
|
|
NotificationManager()->Register(this);
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10015030
|
|
BuildingEntity::~BuildingEntity()
|
|
{
|
|
NotificationManager()->Unregister(this);
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100150a0
|
|
MxLong BuildingEntity::Notify(MxParam& p_param)
|
|
{
|
|
if (((MxNotificationParam&) p_param).GetNotification() == c_notificationClick) {
|
|
return HandleClick((LegoEventNotificationParam&) p_param);
|
|
}
|
|
|
|
return 0;
|
|
}
|