2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Huge compile performance refactor

This commit is contained in:
Jack Andersen
2017-12-28 22:08:12 -10:00
parent 3f2c480891
commit 8301adc3d6
418 changed files with 1645 additions and 2402 deletions

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct AIJumpPoint : IScriptObject
{
@@ -19,6 +17,5 @@ struct AIJumpPoint : IScriptObject
Value<float> unknown1;
};
}
}
#endif

View File

@@ -4,9 +4,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct AIKeyframe : IScriptObject
@@ -21,6 +19,5 @@ struct AIKeyframe : IScriptObject
Value<float> unknown6;
};
}
}
#endif

View File

@@ -0,0 +1,37 @@
#include "Actor.hpp"
#include "hecl/Blender/Connection.hpp"
namespace DataSpec::DNAMP1
{
zeus::CAABox Actor::getVISIAABB(hecl::blender::Token& btok) const
{
hecl::blender::Connection& conn = btok.getBlenderConnection();
zeus::CAABox aabbOut;
if (model)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(model);
conn.openBlend(path);
hecl::blender::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
else if (animationParameters.animationCharacterSet)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(
animationParameters.animationCharacterSet);
conn.openBlend(path.getWithExtension(_S(".blend"), true));
hecl::blender::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
if (aabbOut.min.x > aabbOut.max.x)
return {};
zeus::CTransform xf = ConvertEditorEulerToTransform4f(scale, orientation, location);
return aabbOut.getTransformedAABox(xf);
}
}

View File

@@ -4,9 +4,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Actor : IScriptObject
{
@@ -65,37 +63,8 @@ struct Actor : IScriptObject
actorParameters.scanIDs(scansOut);
}
zeus::CAABox getVISIAABB(hecl::BlenderToken& btok) const
{
hecl::BlenderConnection& conn = btok.getBlenderConnection();
zeus::CAABox aabbOut;
if (model)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(model);
conn.openBlend(path);
hecl::BlenderConnection::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
else if (animationParameters.animationCharacterSet)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(
animationParameters.animationCharacterSet);
conn.openBlend(path.getWithExtension(_S(".blend"), true));
hecl::BlenderConnection::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
if (aabbOut.min.x > aabbOut.max.x)
return {};
zeus::CTransform xf = ConvertEditorEulerToTransform4f(scale, orientation, location);
return aabbOut.getTransformedAABox(xf);
}
zeus::CAABox getVISIAABB(hecl::blender::Token& btok) const;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ActorContraption : IScriptObject
{
@@ -58,6 +56,5 @@ struct ActorContraption : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ActorKeyframe : IScriptObject
{
@@ -21,6 +19,5 @@ struct ActorKeyframe : IScriptObject
Value<float> totalPlayback;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ActorRotate : IScriptObject
{
@@ -20,6 +18,5 @@ struct ActorRotate : IScriptObject
Value<bool> active;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct AmbientAI : IScriptObject
{
@@ -53,6 +51,5 @@ struct AmbientAI : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct AreaAttributes : IScriptObject
{
@@ -35,6 +33,5 @@ struct AreaAttributes : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct AtomicAlpha : IScriptObject
{
@@ -63,6 +61,5 @@ struct AtomicAlpha : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct AtomicBeta : IScriptObject
{
@@ -76,6 +74,5 @@ struct AtomicBeta : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Babygoth : IScriptObject
{
@@ -139,6 +137,5 @@ struct Babygoth : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct BallTrigger : IScriptObject
{
@@ -23,6 +21,5 @@ struct BallTrigger : IScriptObject
Value<bool> unknown6;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Beetle : IScriptObject
{
@@ -59,6 +57,5 @@ struct Beetle : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct BloodFlower : IScriptObject
{
@@ -97,6 +95,5 @@ struct BloodFlower : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Burrower : IScriptObject
{
@@ -80,6 +78,5 @@ struct Burrower : IScriptObject
}
};
}
}
#endif

View File

@@ -131,7 +131,10 @@ make_dnalist(liblist DNAMP1/ScriptObjects
set(ScriptObjectsMP1_SOURCES
ScriptTypes.hpp
IScriptObject.cpp
Parameters.cpp)
Parameters.cpp
Actor.cpp
Platform.cpp
DoorArea.cpp)
dataspec_add_list(DNAMP1/ScriptObjects ScriptObjectsMP1_SOURCES)
list(APPEND ScriptObjectsMP1_SOURCES ${liblist})

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Camera : IScriptObject
{
@@ -29,6 +27,5 @@ struct Camera : IScriptObject
Value<bool> unknown12;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CameraBlurKeyframe : IScriptObject
{
@@ -21,6 +19,5 @@ struct CameraBlurKeyframe : IScriptObject
Value<float> timeOut;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CameraFilterKeyframe : IScriptObject
{
@@ -38,6 +36,5 @@ struct CameraFilterKeyframe : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CameraHint : IScriptObject
{
@@ -68,6 +66,5 @@ struct CameraHint : IScriptObject
Value<float> controlInterpDur;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CameraHintTrigger : IScriptObject
{
@@ -21,6 +19,5 @@ struct CameraHintTrigger : IScriptObject
Value<bool> unknown3;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CameraPitchVolume : IScriptObject
{
@@ -22,6 +20,5 @@ struct CameraPitchVolume : IScriptObject
Value<float> unknown4;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CameraShaker : IScriptObject
{
@@ -23,6 +21,5 @@ struct CameraShaker : IScriptObject
Value<bool> active;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CameraWaypoint : IScriptObject
{
@@ -20,6 +18,5 @@ struct CameraWaypoint : IScriptObject
Value<atUint32> unknown3;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ChozoGhost : IScriptObject
{
@@ -86,6 +84,5 @@ struct ChozoGhost : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ColorModulate : IScriptObject
{
@@ -26,6 +24,5 @@ struct ColorModulate : IScriptObject
Value<bool> unknown11;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ControllerAction : IScriptObject
{
@@ -18,6 +16,5 @@ struct ControllerAction : IScriptObject
Value<bool> deactivateOnClose;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Counter : IScriptObject
{
@@ -19,6 +17,5 @@ struct Counter : IScriptObject
Value<bool> unknown2;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct CoverPoint : IScriptObject
{
@@ -23,6 +21,5 @@ struct CoverPoint : IScriptObject
Value<float> unknown6;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct DamageableTrigger : IScriptObject
{
@@ -51,7 +49,7 @@ struct DamageableTrigger : IScriptObject
g_curSpec->flattenDependencies(colorTex, pathsOut);
}
zeus::CAABox getVISIAABB(hecl::BlenderToken& btok) const
zeus::CAABox getVISIAABB(hecl::blender::Token& btok) const
{
zeus::CVector3f halfExtent = zeus::CVector3f(volume) / 2.f;
zeus::CVector3f loc(location);
@@ -59,6 +57,5 @@ struct DamageableTrigger : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Debris : IScriptObject
{
@@ -59,6 +57,5 @@ struct Debris : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct DebrisExtended : IScriptObject
{
@@ -92,6 +90,5 @@ struct DebrisExtended : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct DebugCameraWaypoint : IScriptObject
{
@@ -18,6 +16,5 @@ struct DebugCameraWaypoint : IScriptObject
Value<atUint32> unknown1;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct DistanceFog : IScriptObject
{
@@ -22,6 +20,5 @@ struct DistanceFog : IScriptObject
Value<bool> active;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Dock : IScriptObject
{
@@ -21,6 +19,5 @@ struct Dock : IScriptObject
Value<bool> loadConnected;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct DockAreaChange : IScriptObject
{
@@ -17,6 +15,5 @@ struct DockAreaChange : IScriptObject
Value<bool> unknown2;
};
}
}
#endif

View File

@@ -0,0 +1,29 @@
#include "DoorArea.hpp"
#include "hecl/Blender/Connection.hpp"
namespace DataSpec::DNAMP1
{
zeus::CAABox DoorArea::getVISIAABB(hecl::blender::Token& btok) const
{
hecl::blender::Connection& conn = btok.getBlenderConnection();
zeus::CAABox aabbOut;
if (animationParameters.animationCharacterSet)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(
animationParameters.animationCharacterSet);
conn.openBlend(path.getWithExtension(_S(".blend"), true));
hecl::blender::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
if (aabbOut.min.x > aabbOut.max.x)
return {};
zeus::CTransform xf = ConvertEditorEulerToTransform4f(scale, orientation, location);
return aabbOut.getTransformedAABox(xf);
}
}

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct DoorArea : IScriptObject
{
@@ -50,29 +48,8 @@ struct DoorArea : IScriptObject
actorParameters.scanIDs(scansOut);
}
zeus::CAABox getVISIAABB(hecl::BlenderToken& btok) const
{
hecl::BlenderConnection& conn = btok.getBlenderConnection();
zeus::CAABox aabbOut;
if (animationParameters.animationCharacterSet)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(
animationParameters.animationCharacterSet);
conn.openBlend(path.getWithExtension(_S(".blend"), true));
hecl::BlenderConnection::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
if (aabbOut.min.x > aabbOut.max.x)
return {};
zeus::CTransform xf = ConvertEditorEulerToTransform4f(scale, orientation, location);
return aabbOut.getTransformedAABox(xf);
}
zeus::CAABox getVISIAABB(hecl::blender::Token& btok) const;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Drone : IScriptObject
{
@@ -98,6 +96,5 @@ struct Drone : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Effect : IScriptObject
{
@@ -58,6 +56,5 @@ struct Effect : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ElectroMagneticPulse : IScriptObject
{
@@ -40,6 +38,5 @@ struct ElectroMagneticPulse : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct ElitePirate : IScriptObject
{
@@ -139,6 +137,5 @@ struct ElitePirate : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct EnergyBall : IScriptObject
{
@@ -81,6 +79,5 @@ struct EnergyBall : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct EnvFxDensityController : IScriptObject
{
@@ -18,6 +16,5 @@ struct EnvFxDensityController : IScriptObject
Value<atUint32> unknown3;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Eyeball : IScriptObject
{
@@ -88,6 +86,5 @@ struct Eyeball : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct FireFlea : IScriptObject
{
@@ -46,6 +44,5 @@ struct FireFlea : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct FishCloud : IScriptObject
{
@@ -66,6 +64,5 @@ struct FishCloud : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct FishCloudModifier : IScriptObject
{
@@ -21,6 +19,5 @@ struct FishCloudModifier : IScriptObject
Value<float> unknown5;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Flaahgra : IScriptObject
{
@@ -90,6 +88,5 @@ struct Flaahgra : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct FlaahgraTentacle : IScriptObject
{
@@ -43,6 +41,5 @@ struct FlaahgraTentacle : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct FlickerBat : IScriptObject
{
@@ -47,6 +45,5 @@ struct FlickerBat : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct FlyingPirate : IScriptObject
{
@@ -115,6 +113,5 @@ struct FlyingPirate : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct FogVolume : IScriptObject
{
@@ -21,6 +19,5 @@ struct FogVolume : IScriptObject
Value<bool> unknown4;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Geemer : IScriptObject
{
@@ -53,6 +51,5 @@ struct Geemer : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Generator : IScriptObject
{
@@ -22,6 +20,5 @@ struct Generator : IScriptObject
Value<float> unknown7;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct GrapplePoint : IScriptObject
{
@@ -19,6 +17,5 @@ struct GrapplePoint : IScriptObject
GrappleParameters grappleParameters;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct GunTurret : IScriptObject
{
@@ -139,6 +137,5 @@ struct GunTurret : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct HUDMemo : IScriptObject
{
@@ -34,6 +32,5 @@ struct HUDMemo : IScriptObject
}
};
}
}
#endif

View File

@@ -1,9 +1,7 @@
#include "IScriptObject.hpp"
#include "ScriptTypes.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
namespace priv
{
@@ -279,4 +277,3 @@ zeus::CTransform ConvertEditorEulerToTransform4f(const zeus::CVector3f& scale,
}
}
}

View File

@@ -6,7 +6,7 @@
#include "zeus/CAABox.hpp"
#include "specter/genie.hpp"
#include <stdio.h>
#include <cstdio>
#define SO_NAME_SPECPROP() SPECTER_PROPERTY("Name", "Instance name; Used to debug scripting events")
#define SO_LOCATION_SPECPROP() SPECTER_PROPERTY("Location", "World relative location of the Actor instance")
@@ -16,9 +16,7 @@
#define SO_COLLISION_OFFSET_SPECPROP() SPECTER_PROPERTY("Collision Offset", "")
#define SO_ACTIVE_SPECPROP() SPECTER_PROPERTY("Active", "If enabled, object instance is drawn and updated")
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
zeus::CTransform ConvertEditorEulerToTransform4f(const zeus::CVector3f& scale,
@@ -48,9 +46,8 @@ struct IScriptObject : BigYAML
virtual void nameIDs(PAKRouter<PAKBridge>& pakRouter) const {}
virtual void gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut) const {}
virtual void gatherScans(std::vector<Scan>& scansOut) const {}
virtual zeus::CAABox getVISIAABB(hecl::BlenderToken& btok) const { return {}; }
virtual zeus::CAABox getVISIAABB(hecl::blender::Token& btok) const { return {}; }
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct IceSheegoth : IScriptObject
{
@@ -134,6 +132,5 @@ struct IceSheegoth : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct IceZoomer : IScriptObject
{
@@ -53,6 +51,5 @@ struct IceZoomer : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct JellyZap : IScriptObject
{
@@ -57,6 +55,5 @@ struct JellyZap : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Magdolite : IScriptObject
{
@@ -90,6 +88,5 @@ struct Magdolite : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct MazeNode : IScriptObject
{
@@ -24,6 +22,5 @@ struct MazeNode : IScriptObject
Value<atVec3f> unknown7;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct MemoryRelay : IScriptObject
{
@@ -17,6 +15,5 @@ struct MemoryRelay : IScriptObject
Value<bool> active;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct MetareeAlpha : IScriptObject
{
@@ -49,6 +47,5 @@ struct MetareeAlpha : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct MetroidAlpha : IScriptObject
{
@@ -65,6 +63,5 @@ struct MetroidAlpha : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct MetroidBeta : IScriptObject
{
@@ -90,6 +88,5 @@ struct MetroidBeta : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct MetroidPrimeStage1 : IScriptObject
{
@@ -352,6 +350,5 @@ struct MetroidPrimeStage1 : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct MetroidPrimeStage2 : IScriptObject
{
@@ -66,6 +64,5 @@ struct MetroidPrimeStage2 : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Midi : IScriptObject
{
@@ -35,6 +33,5 @@ struct Midi : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct NewCameraShaker : IScriptObject
{
@@ -36,6 +34,5 @@ struct NewCameraShaker : IScriptObject
} shakerComponents[3];
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct NewIntroBoss : IScriptObject
{
@@ -74,6 +72,5 @@ struct NewIntroBoss : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Oculus : IScriptObject
{
@@ -229,6 +227,5 @@ struct Oculus : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct OmegaPirate : IScriptObject
{
@@ -162,6 +160,5 @@ struct OmegaPirate : IScriptObject
}
};
}
}
#endif

View File

@@ -1,9 +1,7 @@
#include "Parameters.hpp"
#include "../ANCS.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
UniqueID32 AnimationParameters::getCINF(PAKRouter<PAKBridge>& pakRouter) const
@@ -166,4 +164,3 @@ size_t ActorParameters::binarySize(size_t __isz) const
}
}
}

View File

@@ -6,9 +6,7 @@
#include "../SAVW.hpp"
#include "specter/genie.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
enum class EPickupType : atUint32
@@ -511,7 +509,6 @@ struct BeamInfo : BigYAML
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Parasite : IScriptObject
{
@@ -62,6 +60,5 @@ struct Parasite : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PathCamera : IScriptObject
{
@@ -36,6 +34,5 @@ struct PathCamera : IScriptObject
Value<float> unknown7;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PhazonHealingNodule : IScriptObject
{
@@ -52,6 +50,5 @@ struct PhazonHealingNodule : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PhazonPool : IScriptObject
{
@@ -64,6 +62,5 @@ struct PhazonPool : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Pickup : IScriptObject
{
@@ -67,6 +65,5 @@ struct Pickup : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PickupGenerator : IScriptObject
{
@@ -18,6 +16,5 @@ struct PickupGenerator : IScriptObject
Value<float> frequency;
};
}
}
#endif

View File

@@ -0,0 +1,37 @@
#include "Platform.hpp"
#include "hecl/Blender/Connection.hpp"
namespace DataSpec::DNAMP1
{
zeus::CAABox Platform::getVISIAABB(hecl::blender::Token& btok) const
{
hecl::blender::Connection& conn = btok.getBlenderConnection();
zeus::CAABox aabbOut;
if (model)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(model);
conn.openBlend(path);
hecl::blender::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
else if (animationParameters.animationCharacterSet)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(
animationParameters.animationCharacterSet);
conn.openBlend(path.getWithExtension(_S(".blend"), true));
hecl::blender::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
if (aabbOut.min.x > aabbOut.max.x)
return {};
zeus::CTransform xf = ConvertEditorEulerToTransform4f(scale, orientation, location);
return aabbOut.getTransformedAABox(xf);
}
}

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Platform : IScriptObject
{
@@ -67,37 +65,8 @@ struct Platform : IScriptObject
actorParameters.scanIDs(scansOut);
}
zeus::CAABox getVISIAABB(hecl::BlenderToken& btok) const
{
hecl::BlenderConnection& conn = btok.getBlenderConnection();
zeus::CAABox aabbOut;
if (model)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(model);
conn.openBlend(path);
hecl::BlenderConnection::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
else if (animationParameters.animationCharacterSet)
{
hecl::ProjectPath path = UniqueIDBridge::TranslatePakIdToPath(
animationParameters.animationCharacterSet);
conn.openBlend(path.getWithExtension(_S(".blend"), true));
hecl::BlenderConnection::DataStream ds = conn.beginData();
auto aabb = ds.getMeshAABB();
aabbOut = zeus::CAABox(aabb.first, aabb.second);
}
if (aabbOut.min.x > aabbOut.max.x)
return {};
zeus::CTransform xf = ConvertEditorEulerToTransform4f(scale, orientation, location);
return aabbOut.getTransformedAABox(xf);
}
zeus::CAABox getVISIAABB(hecl::blender::Token& btok) const;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PlayerActor : IScriptObject
{
@@ -62,6 +60,5 @@ struct PlayerActor : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PlayerHint : IScriptObject
{
@@ -20,6 +18,5 @@ struct PlayerHint : IScriptObject
Value<atUint32> unknown2;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PlayerStateChange : IScriptObject
{
@@ -21,6 +19,5 @@ struct PlayerStateChange : IScriptObject
Value<atUint32> unknown5;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PointOfInterest : IScriptObject
{
@@ -35,6 +33,5 @@ struct PointOfInterest : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PuddleSpore : IScriptObject
{
@@ -65,6 +63,5 @@ struct PuddleSpore : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct PuddleToadGamma : IScriptObject
{
@@ -60,6 +58,5 @@ struct PuddleToadGamma : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Puffer : IScriptObject
{
@@ -65,6 +63,5 @@ struct Puffer : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct RadialDamage : IScriptObject
{
@@ -19,6 +17,5 @@ struct RadialDamage : IScriptObject
Value<float> radius;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct RandomRelay : IScriptObject
{
@@ -19,6 +17,5 @@ struct RandomRelay : IScriptObject
Value<bool> unknown4;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Relay : IScriptObject
{
@@ -16,6 +14,5 @@ struct Relay : IScriptObject
Value<bool> active;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Repulsor : IScriptObject
{
@@ -18,6 +16,5 @@ struct Repulsor : IScriptObject
Value<float> unknown;
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Ridley : IScriptObject
{
@@ -756,6 +754,5 @@ struct Ridley : IScriptObject
}
};
}
}
#endif

View File

@@ -5,9 +5,7 @@
#include "IScriptObject.hpp"
#include "Parameters.hpp"
namespace DataSpec
{
namespace DNAMP1
namespace DataSpec::DNAMP1
{
struct Ripper : IScriptObject
{
@@ -45,6 +43,5 @@ struct Ripper : IScriptObject
}
};
}
}
#endif

Some files were not shown because too many files have changed in this diff Show More