From ee721ff43744ccce0fa56f2c7297a7a366d0c28a Mon Sep 17 00:00:00 2001 From: emd4600 Date: Thu, 24 Oct 2024 23:12:53 +0200 Subject: [PATCH] Add 'archetype' to OTDBParameters.h --- Spore ModAPI/Spore/BasicIncludes.h | 2 ++ Spore ModAPI/Spore/Sporepedia/AssetBrowserQuery.h | 1 + Spore ModAPI/Spore/Sporepedia/OTDBParameters.h | 1 + Spore ModAPI/Spore/Sporepedia/ObjectTemplateDB.h | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Spore ModAPI/Spore/BasicIncludes.h b/Spore ModAPI/Spore/BasicIncludes.h index e845937a..632846ff 100644 --- a/Spore ModAPI/Spore/BasicIncludes.h +++ b/Spore ModAPI/Spore/BasicIncludes.h @@ -33,6 +33,8 @@ #include #include +#include +#include #include #include diff --git a/Spore ModAPI/Spore/Sporepedia/AssetBrowserQuery.h b/Spore ModAPI/Spore/Sporepedia/AssetBrowserQuery.h index 01833717..cb4a9d7e 100644 --- a/Spore ModAPI/Spore/Sporepedia/AssetBrowserQuery.h +++ b/Spore ModAPI/Spore/Sporepedia/AssetBrowserQuery.h @@ -15,6 +15,7 @@ namespace Sporepedia /// Asset keys obtained after filtering by parameters /* 20h */ eastl::vector parameterKeys; }; + ASSERT_SIZE(AssetBrowserQuery, 0x34); /// Finds all the assets that match the given filter. This method will use a filter with the given ID /// in the `AssetBrowserFilter` folder. The `dst` vector will be filled with one instance for every diff --git a/Spore ModAPI/Spore/Sporepedia/OTDBParameters.h b/Spore ModAPI/Spore/Sporepedia/OTDBParameters.h index 9b2ad62c..a2fc91e2 100644 --- a/Spore ModAPI/Spore/Sporepedia/OTDBParameters.h +++ b/Spore ModAPI/Spore/Sporepedia/OTDBParameters.h @@ -69,6 +69,7 @@ namespace Sporepedia { type = 0x2DD90AF, subtype = 0x2DC9D1E, + archetype = 0x52DEF3F, cost = 0x5B06E36, baseGear = 0x2F05C60, height = 0x7358629A, diff --git a/Spore ModAPI/Spore/Sporepedia/ObjectTemplateDB.h b/Spore ModAPI/Spore/Sporepedia/ObjectTemplateDB.h index 0a1590ce..b7d87e5c 100644 --- a/Spore ModAPI/Spore/Sporepedia/ObjectTemplateDB.h +++ b/Spore ModAPI/Spore/Sporepedia/ObjectTemplateDB.h @@ -28,7 +28,7 @@ namespace Sporepedia /* 18h */ virtual bool Write(bool, bool writeSummarizers); /* 1Ch */ virtual bool func1Ch(); /* 20h */ virtual void func20h(); - /* 24h */ virtual bool func24h(int, int, int); + /* 24h */ virtual bool func24h(eastl::vector& dstKeys, int, const eastl::vector& parameters); /* 28h */ virtual bool func28h(int, int, int); /* 2Ch */ virtual void FindObjects(eastl::vector& dst, const eastl::vector& parameters); //TODO thse functions are placeholders