mirror of https://github.com/PrimeDecomp/prime.git
Fix compilation of all files
This commit is contained in:
parent
07ea1b3d0a
commit
a34a639326
|
@ -40,7 +40,7 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (HasLock() && CToken::IsLoaded()) {
|
if (HasLock() && CToken::IsLoaded()) {
|
||||||
x8_item = GetT();
|
x8_item = TToken::GetT();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "rstl/pair.hpp"
|
#include "rstl/pair.hpp"
|
||||||
|
|
||||||
|
#include "Kyoto/TToken.hpp"
|
||||||
|
|
||||||
class CTransform4f;
|
class CTransform4f;
|
||||||
class CParticleGen;
|
class CParticleGen;
|
||||||
class IObjectStore;
|
class IObjectStore;
|
||||||
|
@ -13,6 +15,9 @@ class CResFactory;
|
||||||
class CAABox;
|
class CAABox;
|
||||||
class CVector2f;
|
class CVector2f;
|
||||||
class CVector3f;
|
class CVector3f;
|
||||||
|
class CModel;
|
||||||
|
class CSkinnedModel;
|
||||||
|
class CColor;
|
||||||
|
|
||||||
class IRenderer {
|
class IRenderer {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -15,6 +15,8 @@ class CRandom16;
|
||||||
|
|
||||||
class CBodyController {
|
class CBodyController {
|
||||||
public:
|
public:
|
||||||
|
CBodyController();
|
||||||
|
|
||||||
CActor& GetOwner() const { return x0_actor; }
|
CActor& GetOwner() const { return x0_actor; }
|
||||||
CBodyStateCmdMgr& CommandMgr() { return x4_cmdMgr; }
|
CBodyStateCmdMgr& CommandMgr() { return x4_cmdMgr; }
|
||||||
const CBodyStateCmdMgr& GetCommandMgr() const { return x4_cmdMgr; }
|
const CBodyStateCmdMgr& GetCommandMgr() const { return x4_cmdMgr; }
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
|
|
||||||
#include "rstl/vector.hpp"
|
#include "rstl/vector.hpp"
|
||||||
|
|
||||||
|
#include "Kyoto/TToken.hpp"
|
||||||
|
|
||||||
class CAnimData;
|
class CAnimData;
|
||||||
class CStateManager;
|
class CStateManager;
|
||||||
class CToken;
|
|
||||||
|
|
||||||
class CGSFidget {
|
class CGSFidget {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
bool bigStrike);
|
bool bigStrike);
|
||||||
void Update(float, CStateManager&);
|
void Update(float, CStateManager&);
|
||||||
void Draw(const CStateManager&, const CTransform4f&) const;
|
void Draw(const CStateManager&, const CTransform4f&) const;
|
||||||
void ReturnToDefault(CStateManager& mgr);
|
void ReturnToDefault(CStateManager& mgr, bool);
|
||||||
int GetFreeLookSetId() const;
|
int GetFreeLookSetId() const;
|
||||||
void BasePosition(bool bigStrikeReset);
|
void BasePosition(bool bigStrikeReset);
|
||||||
void EnterFidget(CStateManager&, SamusGun::EFidgetType, int);
|
void EnterFidget(CStateManager&, SamusGun::EFidgetType, int);
|
||||||
|
|
|
@ -27,7 +27,7 @@ CInputStream::CInputStream(const void* ptr, int len, bool owned)
|
||||||
|
|
||||||
CInputStream::~CInputStream() {
|
CInputStream::~CInputStream() {
|
||||||
if (x14_owned) {
|
if (x14_owned) {
|
||||||
delete x10_ptr;
|
delete[] x10_ptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ CIOWin::EMessageReturn CErrorOutputWindow::OnMessage(const CArchitectureMessage&
|
||||||
case kAM_FrameEnd:
|
case kAM_FrameEnd:
|
||||||
{
|
{
|
||||||
int result = x14_state ^ 1;
|
int result = x14_state ^ 1;
|
||||||
result = (result >> 1) - (result & x14_state) >> 0x1f;
|
result = (result >> 1) - ((result & x14_state) >> 0x1f);
|
||||||
return CIOWin::EMessageReturn(result);
|
return CIOWin::EMessageReturn(result);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -843,7 +843,7 @@ void CPlayerGun::UpdateGunIdle(bool inStrikeCooldown, float camBobT, float dt, C
|
||||||
} else {
|
} else {
|
||||||
if (x833_31_inFreeLook) {
|
if (x833_31_inFreeLook) {
|
||||||
if ((x2f8_stateFlags & 0x10) != 0x10) {
|
if ((x2f8_stateFlags & 0x10) != 0x10) {
|
||||||
x73c_gunMotion->ReturnToDefault(mgr);
|
x73c_gunMotion->ReturnToDefault(mgr, x834_30_inBigStrike);
|
||||||
x740_grappleArm->ReturnToDefault(mgr, 0.f, false);
|
x740_grappleArm->ReturnToDefault(mgr, 0.f, false);
|
||||||
}
|
}
|
||||||
x833_31_inFreeLook = false;
|
x833_31_inFreeLook = false;
|
||||||
|
|
|
@ -76,8 +76,8 @@ void CGunMotion::Draw(const CStateManager& mgr, const CTransform4f& xf) const {
|
||||||
x0_modelData.Render(mgr, xf, nullptr, CModelFlags::Normal());
|
x0_modelData.Render(mgr, xf, nullptr, CModelFlags::Normal());
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGunMotion::ReturnToDefault(CStateManager& mgr) {
|
void CGunMotion::ReturnToDefault(CStateManager& mgr, bool b) {
|
||||||
x4c_gunController.ReturnToDefault(mgr, 0.f);
|
x4c_gunController.ReturnToDefault(mgr, 0.f, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CGunMotion::GetFreeLookSetId() const { return x4c_gunController.GetFreeLookSetId(); }
|
int CGunMotion::GetFreeLookSetId() const { return x4c_gunController.GetFreeLookSetId(); }
|
||||||
|
|
Loading…
Reference in New Issue