Spore-ModAPI icon indicating copy to clipboard operation
Spore-ModAPI copied to clipboard

Added 7 new functions and more documentation to class cScenarioPlayMode

Open Tenderi4 opened this issue 1 year ago • 0 comments

  • Added 7 new and known functions from Ghidra to cScenarioPlayMode:
/// Sets the active state of the adventure.
void SetState(ScenarioPlayModeState state);

/// Updates the current, active goals of the adventure.
bool UpdateGoals();

/// Update function of the adventure.
void Update(int deltaTime);

/// Completes the act, then moves the adventure into the next act. If in the last act, the adventure completes.
void CompleteAct();

/// Called by Update(). Checks if the current goals are clearable or not. 
void CheckGoalProgress();  

/// Removes objects that are supposed to be invisible during the current act.
static void RemoveInvisibleClasses();

/// Unknown
static void ReadScenarioTuning();
  • Added comments to other functions of cScenarioPlayMode:
/// Called when starting the adventure in Play Mode.
void Initialize();

/// Sets the current act index of the active adventure.
void SetCurrentAct(int actIndex, bool = false);

/// Skips the adventure up to the given act index. Also works in reverse, i. e. going back to previous acts in the adventure. 
/// Using the same index as the current act will reset the adventure to the beginning of said act.
void JumpToAct(int actIndex);

Special thanks to Rosalie for documenting some of these functions earlier in Ghidra, and to ERROR for helping me figure out some of these.

Tenderi4 avatar Apr 06 '24 23:04 Tenderi4