Commit Graph

609 Commits

Author SHA1 Message Date
e19e8ff2a3 Rewrite FramedReplayInputHandler for robustness
This commit changes the semantics of `CurrentFrame` and `NextFrame` of the class.
The ordering of `NextFrame.Time` and `CurrentFrame.Time` was dependent on the current direction.
Now, it should always satisfy `CurrentFrame.Time <= CurrentTime <= NextFrame.Time` except at the start/end.
This change, however, doesn't break existing deriving classes if the template code pattern usage of interpolation is used.
The deriving class code can be simplified due to the elimination of nullable types. I didn't include those changes in this commit.

I removed `StreamingFramedReplayInputHandlerTest` for now, as it is almost-duplicate of `FramedReplayInputHandlerTest`. I'll include more tests in later commits.

This commit fixes #6150.
2021-04-12 16:18:11 +09:00
d6d8ea5b6b Throw when getting a frame of an empty replay 2021-04-12 11:17:56 +09:00
8aff53172d Remove necessity for nested PassThroughInputManger 2021-04-08 15:18:31 +09:00
beebdb0734 Clean up implementation 2021-04-05 22:30:51 +09:00
c3c7c18549 Fix tests 2021-04-01 23:48:26 +09:00
9e95441aa6 Rename Spectator -> SoloSpectator 2021-04-01 22:08:52 +09:00
aec859b4d1 Merge branch 'master' into fix-unsafe-skinnable-sample-play 2021-03-18 19:51:46 +01:00
7fa5fd5647 Update usages of config with framework changes 2021-03-17 16:10:16 +09:00
a5b3ac7ef8 Add failing test covering alpha commands proceeding non-alpha (but ignored) commands 2021-03-09 15:54:11 +09:00
ee6a94273d Merge branch 'master' into fix-unsafe-skinnable-sample-play 2021-02-22 18:31:27 +09:00
6bac83964a Merge branch 'master' into fix-pofl-on-cooldown 2021-02-22 10:03:27 +03:00
d2ec151c67 Add failing test for pausing when pause support is disabled 2021-02-20 14:20:13 +09:00
f6c279ab00 Add assert ensuring player resumed properly 2021-02-19 11:45:45 +03:00
fe5e45ea81 Move gameplay cursor outside instead and fix potential failure 2021-02-19 11:43:33 +03:00
52ebe34347 Update TestScenePause exit from fail test to actually fail 2021-02-19 17:26:26 +09:00
4c214b74ce Merge branch 'master' into fix-error-exit-during-results-transition 2021-02-19 17:13:55 +09:00
772471a6d8 Add failing test case 2021-02-19 10:46:31 +03:00
00574a5288 Use ISample everywhere in Skin GetSample lookup path 2021-02-18 18:32:28 +09:00
2e646882fa Merge branch 'master' into non-concurrent-sample-playback 2021-02-15 21:22:21 +09:00
9ad38ab20e Move HubClientConnector retrieval to IAPIProvider 2021-02-15 16:43:56 +09:00
f664fca0dd Tidy up tests (and remove duplicate with new call logic) 2021-02-15 16:11:17 +09:00
4f264758a4 Add test coverage of pause from resume overlay 2021-02-15 15:57:36 +09:00
c6ed3efa4a Merge branch 'master' into non-concurrent-sample-playback 2021-02-15 14:47:32 +09:00
25f5120fdf Add failing test coverage of user pausing or quick exiting during cooldown 2021-02-15 14:36:17 +09:00
a4dc544235 Refactor some shared code in TestScenePause 2021-02-15 14:24:08 +09:00
34e600464b Merge branch 'master' into abstract-hub-connection 2021-02-15 13:53:54 +09:00
d3f0c0730d Merge branch 'master' into non-concurrent-sample-playback 2021-02-12 17:22:15 +09:00
d3c1b47592 Replace nullable API with null connector instead 2021-02-11 12:34:39 +03:00
94f35825dd Update test to cover changed exit/pause logic
I think this makes more sense?
2021-02-09 17:29:30 +09:00
a0ead38496 Prevent test spectator clients from attempting hub connections 2021-02-09 08:02:51 +03:00
f04d6d5e5e Update hub clients with changes to connecotr 2021-02-09 08:02:32 +03:00
f76f92515e Clean up spectator streaming client with new hub connector 2021-02-09 02:15:56 +03:00
68c20a2a37 Allow autoplay score generation to access mod list 2021-02-07 18:35:34 +01:00
304264046b Added tests. 2021-01-24 17:46:54 -05:00
7abe33ad0e Add failing test case 2021-01-21 00:04:15 +01:00
8ffbcc9860 Fix test failures and general discrepancies 2021-01-20 14:05:35 +09:00
de9d075f94 Initial sample + samplechannel rework 2021-01-19 17:11:40 +09:00
d023ad8ad1 Remove assert messages 2021-01-15 15:18:29 +09:00
51255033e2 Update some missed usages of KeyBindingContainer in tests 2021-01-15 14:57:01 +09:00
0ea4e221b2 Merge branch 'master' into net5.0 2021-01-14 14:02:51 +03:00
17abe90c27 move SkinnableHealthDisplay
Similar components are in osu.Game.Screens.Play.HUD while this is not
2020-12-31 20:23:13 +08:00
92d74a9343 Fix potential nullref in test scene 2020-12-28 20:48:14 +09:00
6254907ef9 Move multiplayer leaderboard test to correct namespace 2020-12-28 20:31:08 +09:00
966a2151e3 Ensure the previous leaderboard is removed 2020-12-26 17:55:24 +09:00
2599e95335 Add test coverage 2020-12-26 12:11:19 +09:00
ff57562956 Fix multiplayer leaderboard not unsubscribing from quit users 2020-12-26 11:35:31 +09:00
fa14438671 Merge pull request #11285 from peppy/resort-leaderboard-less
Re-sort the leaderboard order a maximum of once a second
2020-12-25 00:05:13 +09:00
d0e8347968 Change asserts into until steps 2020-12-24 22:28:25 +09:00
eb795a2127 Move all endpoint information to a configuration class 2020-12-24 17:58:38 +09:00
8ac76bd524 Merge pull request #11199 from smoogipoo/refactor-player-score-creation
Asyncify player score creation and submission
2020-12-20 17:30:11 +09:00