Skip to content

Added 7 new functions and more documentation to class cScenarioPlayMode#64

Merged
emd4600 merged 2 commits intoSpore-Community:masterfrom
Tenderi4:scenarioplaymode-functions
Jul 9, 2024
Merged

Added 7 new functions and more documentation to class cScenarioPlayMode#64
emd4600 merged 2 commits intoSpore-Community:masterfrom
Tenderi4:scenarioplaymode-functions

Conversation

@Tenderi4
Copy link
Copy Markdown
Contributor

@Tenderi4 Tenderi4 commented Apr 6, 2024

  • 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 added 2 commits April 6, 2024 23:18
4 member functions and 2 static functions. If anything goes wrong when calling these, feel free to adjust them where necessary.

- Special thanks to Rosalie and ERROR in their help with researching these earlier.
@emd4600 emd4600 merged commit 596c6aa into Spore-Community:master Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants