CLaserFence::SetPushback and PCInput_GetMouseStatus

This commit is contained in:
krystalgamer 2024-05-23 19:32:17 +02:00
parent 2e5b523c64
commit e5e66adfbb
5 changed files with 31 additions and 3 deletions

View File

@ -1 +1,10 @@
#include "PCInput.h"
#include "PCInput.h"
static unsigned char gMouseStatus;
// @NotOk
// Globals
int PCINPUT_GetMouseStatus(void)
{
return gMouseStatus;
}

View File

@ -3,4 +3,8 @@
#ifndef PCINPUT_H
#define PCINPUT_H
#endif
#include "export.h"
EXPORT int PCINPUT_GetMouseStatus(void);
#endif

View File

@ -32,7 +32,7 @@ class CTurretLaser : public CNonRenderedBit
unsigned char topPad[0xD];
int field_4C;
unsigned char bottomPad[0x64-0x4C];
unsigned char bottomPad[0x64-0x4C-4];
};
void validate_CTurret(void);

View File

@ -2,7 +2,16 @@
#include "validate.h"
// @Ok
void CLaserFence::SetPushback(bool pushback)
{
this->field_114 = pushback;
}
void validate_CLaserFence(void)
{
VALIDATE_SIZE(CLaserFence, 0x11C);
VALIDATE(CLaserFence, field_114, 0x114);
}

6
wire.h
View File

@ -9,6 +9,12 @@
class CLaserFence : public CBody
{
public:
EXPORT void SetPushback(bool);
unsigned char topPad[0x114-0xF4];
bool field_114;
unsigned char bottomPad[0x11C-0x114-1];
};
void validate_CLaserFence(void);