Add methods covering match start / end

This commit is contained in:
Dean Herbert 2020-12-08 18:42:08 +09:00
parent 2aedd82e27
commit 2433838d58
2 changed files with 20 additions and 0 deletions

View File

@ -46,5 +46,20 @@ namespace osu.Game.Online.RealtimeMultiplayer
/// <param name="userId">The ID of the user performing a state change.</param>
/// <param name="state">The new state of the user.</param>
Task UserStateChanged(long userId, MultiplayerUserState state);
/// <summary>
/// Signals that a match is to be started. Users in the <see cref="MultiplayerUserState.Ready"/> state should begin loading gameplay at this point.
/// </summary>
Task LoadRequested();
/// <summary>
/// Signals that a match has started. All loaded users' clients should now start gameplay as soon as possible.
/// </summary>
Task MatchStarted();
/// <summary>
/// Signals that the match has ended, all players have finished and results are ready to be displayed.
/// </summary>
Task ResultsReady();
}
}

View File

@ -37,5 +37,10 @@ namespace osu.Game.Online.RealtimeMultiplayer
/// <param name="newState">The proposed new state.</param>
/// <exception cref="InvalidStateChange">If the state change requested is not valid, given the previous state or room state.</exception>
Task ChangeState(MultiplayerUserState newState);
/// <summary>
/// As the host of a room, start the match.
/// </summary>
Task StartMatch();
}
}