mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
Police, PoliceEntity ClassName and IsA (#150)
This commit is contained in:
parent
06c7ba2c37
commit
b20aa9b8fb
2 changed files with 25 additions and 1 deletions
|
@ -13,7 +13,19 @@ class Police : public LegoWorld
|
||||||
virtual ~Police() override; // vtable+0x0
|
virtual ~Police() override; // vtable+0x0
|
||||||
|
|
||||||
virtual MxLong Notify(MxParam &p) override; // vtable+0x4
|
virtual MxLong Notify(MxParam &p) override; // vtable+0x4
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x1005e1e0
|
||||||
|
inline virtual const char *ClassName() const override // vtable+0xc
|
||||||
|
{
|
||||||
|
// 0x100f0450
|
||||||
|
return "Police";
|
||||||
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x1005e1f0
|
||||||
|
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
||||||
|
{
|
||||||
|
return !strcmp(name, Police::ClassName()) || LegoWorld::IsA(name);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // POLICE_H
|
#endif // POLICE_H
|
||||||
|
|
|
@ -7,7 +7,19 @@
|
||||||
// SIZE 0x68
|
// SIZE 0x68
|
||||||
class PoliceEntity : public BuildingEntity
|
class PoliceEntity : public BuildingEntity
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
// OFFSET: LEGO1 0x1000ed60
|
||||||
|
inline virtual const char *ClassName() const override // vtable+0xc
|
||||||
|
{
|
||||||
|
// 0x100f0328
|
||||||
|
return "PoliceEntity";
|
||||||
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x1000ed70
|
||||||
|
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
||||||
|
{
|
||||||
|
return !strcmp(name, PoliceEntity::ClassName()) || BuildingEntity::IsA(name);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // POLICEENTITY_H
|
#endif // POLICEENTITY_H
|
||||||
|
|
Loading…
Reference in a new issue