You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
1. In your Activity's Create function, call ActivitySpeedrunHelper.Setup. The first argument should be self, the second should be the function you want to run when then player enters speedrun mode (see the SignalHunt Activity for an example).
4
+
This will return speedrun data, which you should keep, since you'll need to use it elsewhere.
5
+
2. In your Activity's Update function, call ActivitySpeedrunHelper.CheckForSpeedrun, until the speedrun has begun. The only argument is the speedrun data which was returned by Setup.
6
+
This will return true if the speedrun has begun or nothing went wrong, or false if something went wrong. If it returns false, you should delete your speedrun data, since it will no longer work.
7
+
3. When you want to mark a speedrun as completed, call ActivitySpeedrunHelper.CompleteSpeedrun. The only argument is the speedrun data which was returned by Setup.
8
+
9
+
To check whether a run is active, call ActivitySpeedrunHelper.SpeedrunActive. The only argument is the speedrun data which was returned by Setup.
10
+
To check whether a run is completed, call ActivitySpeedrunHelper.SpeedrunCompleted. The only argument is the speedrun data which was returned by Setup.
11
+
To get duration of a run (active or completed), formatted in seconds and milliseconds, call ActivitySpeedrunHelper.GetSpeedrunDuration. The only argument is the speedrun data which was returned by Setup.
0 commit comments