mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 01:14:19 +00:00
The IslePathActor's (#113)
* pizza: fix type m_unk90 * Initial implementation of a lot of IslePathActor's All IslePathActor's seem to have (for the most part), the same few variables in common, probably some ID. SkateBoard, Pizza and TowTrack seem to be a bit more complicated with additional fields surrounding it. * Add missing ClassName(s) and IsA(s) * Add decomp size asserts * Fix size assertions * Make legopathactor fields protected for now, fix a type in Pizza * Fix TowTrack structure --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef RACECAR_H
|
||||
#define RACECAR_H
|
||||
|
||||
#include "decomp.h"
|
||||
#include "islepathactor.h"
|
||||
|
||||
// VTABLE 0x100d6918
|
||||
@@ -10,6 +11,22 @@ class RaceCar : public IslePathActor
|
||||
public:
|
||||
RaceCar();
|
||||
virtual ~RaceCar() override; // vtable+0x0
|
||||
|
||||
// OFFSET: LEGO1 0x10028270
|
||||
inline virtual const char *ClassName() const override // vtable+0x0c
|
||||
{
|
||||
// 0x100f03e0
|
||||
return "RaceCar";
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10028280
|
||||
inline virtual MxBool IsA(const char *name) const override // vtable+0x10
|
||||
{
|
||||
return !strcmp(name, RaceCar::ClassName()) || IslePathActor::IsA(name);
|
||||
}
|
||||
private:
|
||||
// TODO: RaceCar fields
|
||||
undefined m_unk160[4];
|
||||
};
|
||||
|
||||
#endif // RACECAR_H
|
||||
|
||||
Reference in New Issue
Block a user