mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-12-03 02:40:45 +00:00
one more cturret method
This commit is contained in:
parent
0437777d72
commit
72b5c7d5b4
10
turret.cpp
10
turret.cpp
@ -7,9 +7,19 @@ void __inline CTurret::TargetLockAbsolute(const CVector &a1){
|
||||
this->field_218 |= 4;
|
||||
}
|
||||
|
||||
void __inline CTurret::TargetLockDynamic(CBody *a2)
|
||||
{
|
||||
if ( !a2->IsDead() )
|
||||
{
|
||||
this->field_378 = a2;
|
||||
this->field_218 |= 0x10u;
|
||||
}
|
||||
}
|
||||
|
||||
void validate_CTurret(void){
|
||||
VALIDATE_SIZE(CTurret, 0x37C);
|
||||
|
||||
VALIDATE(CTurret, field_324, 0x324);
|
||||
VALIDATE(CTurret, field_344, 0x344);
|
||||
VALIDATE(CTurret, field_378, 0x378);
|
||||
}
|
||||
|
4
turret.h
4
turret.h
@ -7,12 +7,14 @@
|
||||
class CTurret : public CBaddy {
|
||||
public:
|
||||
EXPORT void TargetLockAbsolute(const CVector &);
|
||||
EXPORT void TargetLockDynamic(CBody *a2);
|
||||
|
||||
CVector field_324;
|
||||
unsigned char padAfter324[0x20 - sizeof(CVector)];
|
||||
|
||||
CVector field_344;
|
||||
unsigned char padFull[41];
|
||||
unsigned char padAfter344[0x378-0x344 - sizeof(CVector)];
|
||||
CBody *field_378;
|
||||
};
|
||||
|
||||
void validate_CTurret(void);
|
||||
|
Loading…
Reference in New Issue
Block a user