-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3rdParty: update Spore-ModAPI to v2.5.327
- Loading branch information
1 parent
591cf63
commit b5a034e
Showing
13 changed files
with
161 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
[subrepo] | ||
remote = [email protected]:emd4600/Spore-ModAPI.git | ||
branch = master | ||
commit = 6108aaf8a4ab9d3d430ae9b020cce794162f1895 | ||
parent = efe450b69168156a4fd745e2b27347647bb3c88d | ||
commit = b4eee234431e61ca3dc2fdec54d91b36f753c426 | ||
parent = 591cf63f26650206adb0b71c570941b9f6c7b577 | ||
method = merge | ||
cmdver = 0.4.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
3rdParty/Spore-ModAPI/Spore ModAPI/Spore/Simulator/cRaidEvent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#pragma once | ||
|
||
#include <Spore\Simulator\cMission.h> | ||
#include <Spore\Simulator\cGameDataUFO.h> | ||
#include <Spore\Simulator\cShipBackgroundData.h> | ||
|
||
namespace Simulator | ||
{ | ||
/// The kind of mission for raid events. Example usage, to raid the current planet: | ||
/// ```cpp | ||
/// using namespace Simulator; | ||
/// auto planet = GetActivePlanetRecord(); | ||
/// auto empireID = planet->GetStarRecord()->mEmpireID; | ||
/// auto empire = StarManager.GetEmpire(empireID); | ||
/// auto mission = MissionManager.CreateMission(id("RaidEvent"), planet, empire); | ||
/// auto raidEvent = object_cast<cRaidEvent>(mission); | ||
/// raidEvent->mpTargetPlanet = GetActivePlanet(); | ||
/// raidEvent->mNumBombers = 10; | ||
/// raidEvent->AcceptMission(); | ||
/// ``` | ||
class cRaidEvent | ||
: public cMission | ||
{ | ||
public: | ||
static const uint32_t TYPE = 0x3960C0E; | ||
static const uint32_t NOUN_ID = 0x3960C0A; | ||
|
||
public: | ||
/* 1F0h */ cGameDataUFOPtr mGalaxyBomber; | ||
/* 1F4h */ int mOriginStarRecordID; | ||
/* 1F8h */ int mNumBombers; | ||
/* 1FCh */ int mNumFighters; | ||
/* 200h */ ResourceKey mPendingUFOKey; | ||
/* 20Ch */ float mDamageRemainder; | ||
/* 210h */ float mDamageRemainderUFO; | ||
/* 214h */ bool mShouldDestroyColonyObject; | ||
/* 215h */ bool mWaitingForRaid; // true | ||
/* 218h */ int field_218; | ||
/* 21Ch */ bool mUFOsLeaveOnArrival; | ||
/* 21Dh */ bool mInitialized; | ||
/* 21Eh */ bool mShowDefaultEventLog; // true | ||
/* 220h */ uint32_t mTimeOfArrivalMS; | ||
/* 224h */ Math::Vector3 mUFOSpawnLocation; | ||
/* 230h */ uint32_t mAttackerEmpire; // -1 | ||
/* 234h */ bool mIsPlayerSummoned; | ||
/* 238h */ eastl::vector<int> mBackgroundShipsList; | ||
}; | ||
ASSERT_SIZE(cRaidEvent, 0x250); | ||
} |
41 changes: 41 additions & 0 deletions
41
3rdParty/Spore-ModAPI/Spore ModAPI/Spore/Simulator/cRaidPlunderEvent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#pragma once | ||
|
||
#include <Spore\Simulator\cMission.h> | ||
#include <Spore\Simulator\cShipBackgroundData.h> | ||
|
||
namespace Simulator | ||
{ | ||
/// The kind of mission for pirate raid events. Example usage, to raid the current planet: | ||
/// ```cpp | ||
/// using namespace Simulator; | ||
/// auto planet = GetActivePlanetRecord(); | ||
/// auto empireID = planet->GetStarRecord()->mEmpireID; | ||
/// auto empire = StarManager.GetEmpire(empireID); | ||
/// auto mission = MissionManager.CreateMission(id("RaidPlunderEvent"), planet, empire); | ||
/// auto raidEvent = object_cast<cRaidPlunderEvent>(mission); | ||
/// raidEvent->mNumPirates = 20; | ||
/// raidEvent->mNumBombers = 10; | ||
/// raidEvent->mpTargetPlanet = GetActivePlanet(); | ||
/// raidEvent->AcceptMission(); | ||
/// auto eventID = UIEventLog.ShowEvent(0x31DF9AC0, GroupIDs::SpacePopups); | ||
/// raidEvent->mAssociatedEventLogIDs.push_back(eventID); | ||
/// ``` | ||
class cRaidPlunderEvent | ||
: public cMission | ||
{ | ||
public: | ||
static const uint32_t TYPE = 0x397BFF2; | ||
static const uint32_t NOUN_ID = 0x397BFF3; | ||
|
||
public: | ||
/* 1F0h */ ResourceKey mPendingUFOKey; | ||
/* 1FCh */ bool mCanStart; | ||
/* 200h */ int mNumPirates; | ||
/* 204h */ int mNumBombers; | ||
/* 208h */ int mNumFighters; | ||
/* 20Ch */ float mDamageRemainderUFO; | ||
/* 210h */ float mStolenSpiceFraction; | ||
/* 214h */ eastl::vector<cShipBackgroundData> mBackgroundShipsList; | ||
}; | ||
ASSERT_SIZE(cRaidPlunderEvent, 0x228); | ||
} |
20 changes: 20 additions & 0 deletions
20
3rdParty/Spore-ModAPI/Spore ModAPI/Spore/Simulator/cShipBackgroundData.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include <Spore\Simulator\ISimulatorSerializable.h> | ||
#include <Spore\Simulator\SimulatorEnums.h> | ||
#include <Spore\MathUtils.h> | ||
|
||
namespace Simulator | ||
{ | ||
class cShipBackgroundData | ||
: public ISimulatorSerializable | ||
{ | ||
public: | ||
/* 04h */ UfoType mUfoType; | ||
/* 08h */ Math::Vector3 mPosition; | ||
/* 14h */ float mHealth; | ||
/* 18h */ float mMaxHealth; | ||
/* 1Ch */ int mBomberIndex; | ||
}; | ||
ASSERT_SIZE(cShipBackgroundData, 0x20); | ||
} |