-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34974e2
commit 2f6a2fd
Showing
6 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using SIData; | ||
|
||
namespace SI.GameServer.Contract; | ||
|
||
/// <summary> | ||
/// Defines a game run request. | ||
/// </summary> | ||
/// <param name="GameSettings">Game options.</param> | ||
/// <param name="PackageInfo">Game package descriptor.</param> | ||
/// <param name="ComputerAccounts">Custom computer accounts information.</param> | ||
public sealed record RunGameRequest( | ||
GameSettingsCore<AppSettingsCore> GameSettings, | ||
PackageInfo PackageInfo, | ||
ComputerAccount[] ComputerAccounts); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace SI.GameServer.Contract; | ||
|
||
/// <summary> | ||
/// Defines a run game response. | ||
/// </summary> | ||
public sealed class RunGameResponse | ||
{ | ||
/// <summary> | ||
/// Is run successfull. | ||
/// </summary> | ||
public bool IsSuccess { get; set; } | ||
|
||
/// <summary> | ||
/// Game host uri. | ||
/// </summary> | ||
public Uri? HostUri { get; set; } | ||
|
||
/// <summary> | ||
/// Game identifier. | ||
/// </summary> | ||
public int GameId { get; set; } | ||
|
||
/// <summary> | ||
/// Should the person be a game host. | ||
/// </summary> | ||
public bool IsHost { get; set; } | ||
|
||
/// <summary> | ||
/// Creation error code. | ||
/// </summary> | ||
public GameCreationResultCode ErrorType { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters