mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 08:52:58 +08:00
Add methods covering match start / end
This commit is contained in:
parent
2aedd82e27
commit
2433838d58
@ -46,5 +46,20 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
|||||||
/// <param name="userId">The ID of the user performing a state change.</param>
|
/// <param name="userId">The ID of the user performing a state change.</param>
|
||||||
/// <param name="state">The new state of the user.</param>
|
/// <param name="state">The new state of the user.</param>
|
||||||
Task UserStateChanged(long userId, MultiplayerUserState state);
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,5 +37,10 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
|||||||
/// <param name="newState">The proposed new state.</param>
|
/// <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>
|
/// <exception cref="InvalidStateChange">If the state change requested is not valid, given the previous state or room state.</exception>
|
||||||
Task ChangeState(MultiplayerUserState newState);
|
Task ChangeState(MultiplayerUserState newState);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// As the host of a room, start the match.
|
||||||
|
/// </summary>
|
||||||
|
Task StartMatch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user