@@ -56,9 +56,28 @@ namespace Simulator
5656 public:
5757 // TODO check sub_F1EFC0
5858
59+ // / Called when starting the adventure in Play Mode.
5960 void Initialize ();
61+ // / Sets the current act index of the active adventure.
6062 void SetCurrentAct (int actIndex, bool = false );
63+ // / Skips the adventure up to the given act index. Also works in reverse, i. e. going back to previous acts in the adventure.
64+ // / Using the same index as the current act will reset the adventure to the beginning of said act.
6165 void JumpToAct (int actIndex);
66+ // / Sets the active state of the adventure.
67+ void SetState (ScenarioPlayModeState state);
68+ // / Updates the current, active goals of the adventure.
69+ bool UpdateGoals ();
70+ // / Update function of the adventure.
71+ void Update (int deltaTime);
72+ // / Completes the act, then moves the adventure into the next act. If in the last act, the adventure completes.
73+ void CompleteAct ();
74+ // / Called by Update(). Checks if the current goals are clearable or not.
75+ void CheckGoalProgress ();
76+
77+ // / Removes objects that are supposed to be invisible during the current act.
78+ static void RemoveInvisibleClasses ();
79+ static void ReadScenarioTuning ();
80+
6281
6382 public:
6483 /* 0Ch */ cScenarioPlaySummary mSummary ;
@@ -111,7 +130,15 @@ namespace Simulator
111130 namespace Addresses ( cScenarioPlayMode)
112131 {
113132 DeclareAddress (Initialize); // 0xF1F450, 0xF1F060
114- DeclareAddress (SetCurrentAct); // 0xF1F260, 0xF1EE70
133+ DeclareAddress (SetCurrentAct); // 0xF1F260, 0xF1EE70
115134 DeclareAddress (JumpToAct); // 0xF1F7B0, 0xF1F3C0
135+ DeclareAddress (SetState); // 0xF1ADB0, 0xF1A9C0
136+ DeclareAddress (UpdateGoals); // 0xF1C780, 0xF1C390
137+ DeclareAddress (Update); // 0xF1FD50, 0xF1F960
138+ DeclareAddress (CompleteAct); // 0xF1F680, 0xF1F290
139+ DeclareAddress (CheckGoalProgress); // 0xF1F8D0, 0xF1F4E0
140+
141+ DeclareAddress (RemoveInvisibleClasses); // 0xF1AFD0, 0xF1ABE0
142+ DeclareAddress (ReadScenarioTuning); // 0xF1E2F0, 0xF1DF00
116143 }
117144}
0 commit comments