2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 19:44:55 +00:00

Windows fixes

This commit is contained in:
Jack Andersen
2019-01-28 22:28:35 -10:00
parent 4dd40f519e
commit ad2681f857
178 changed files with 303 additions and 298 deletions

View File

@@ -76,7 +76,7 @@ zeus::CVector3f CProjectileWeapon::GetTranslation() const {
return x14_localToWorldXf * (x44_localXf * x8c_projOffset + x80_localOffset) + x74_worldOffset;
}
std::experimental::optional<zeus::CAABox> CProjectileWeapon::GetBounds() const {
rstl::optional<zeus::CAABox> CProjectileWeapon::GetBounds() const {
zeus::CAABox aabb;
bool ret = false;
@@ -132,7 +132,7 @@ float CProjectileWeapon::GetAudibleRange() const {
return x4_weaponDesc->x94_COLR.m_res->GetAudibleRange();
}
std::experimental::optional<TLockedToken<CDecalDescription>>
rstl::optional<TLockedToken<CDecalDescription>>
CProjectileWeapon::GetDecalForCollision(EWeaponCollisionResponseTypes type) const {
if (!x4_weaponDesc->x94_COLR)
return {};
@@ -145,7 +145,7 @@ s32 CProjectileWeapon::GetSoundIdForCollision(EWeaponCollisionResponseTypes type
return x4_weaponDesc->x94_COLR.m_res->GetSoundEffectId(type);
}
std::experimental::optional<TLockedToken<CGenDescription>> CProjectileWeapon::CollisionOccured(
rstl::optional<TLockedToken<CGenDescription>> CProjectileWeapon::CollisionOccured(
EWeaponCollisionResponseTypes type, bool deflected, bool useTarget, const zeus::CVector3f& pos,
const zeus::CVector3f& normal, const zeus::CVector3f& target) {
x80_localOffset = x14_localToWorldXf.transposeRotate(pos - x74_worldOffset) - x8c_projOffset;