Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions go/connectfour/v1/gamingplatform.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ package connectfourv1
const GameType = "ConnectFour.Game.v1"
const GetGamesByPlayerType = "ConnectFour.GetGamesByPlayer.v1"
const GetGamesByPlayerResponseType = "ConnectFour.GetGamesByPlayerResponse.v1"
const GetOpenGamesType = "ConnectFour.GetOpenGames.v1"
const GetOpenGamesResponseType = "ConnectFour.GetOpenGamesResponse.v1"
const JoinGameType = "ConnectFour.JoinGame.v1"
const JoinGameResponseType = "ConnectFour.JoinGameResponse.v1"
const MakeMoveType = "ConnectFour.MakeMove.v1"
Expand Down
247 changes: 208 additions & 39 deletions go/connectfour/v1/messaging.pb.go

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions php/GamingPlatform/Api/ConnectFour/V1/ConnectFourV1.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,35 @@ public static function createGetGamesByPlayerResponse(
if ($data !== null) $message->mergeFromString($data);
return $message;
}
public const string GetOpenGamesType = 'ConnectFour.GetOpenGames.v1';
public static function createGetOpenGames(
?string $data = null
): GetOpenGames {
static $template;
$template ??= new GetOpenGames();
$message = clone $template;
if ($data !== null) $message->mergeFromString($data);
return $message;
}
public static function createGetOpenGamesResponse_Game(
?string $data = null
): GetOpenGamesResponse\Game {
static $template;
$template ??= new GetOpenGamesResponse\Game();
$message = clone $template;
if ($data !== null) $message->mergeFromString($data);
return $message;
}
public const string GetOpenGamesResponseType = 'ConnectFour.GetOpenGamesResponse.v1';
public static function createGetOpenGamesResponse(
?string $data = null
): GetOpenGamesResponse {
static $template;
$template ??= new GetOpenGamesResponse();
$message = clone $template;
if ($data !== null) $message->mergeFromString($data);
return $message;
}
public const string JoinGameType = 'ConnectFour.JoinGame.v1';
public static function createJoinGame(
?string $data = null
Expand Down
33 changes: 33 additions & 0 deletions php/GamingPlatform/Api/ConnectFour/V1/ConnectFourV1Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,39 @@ public static function createGetGamesByPlayerResponse(
return $message;
}

/** @deprecated */
public static function createGetOpenGames(
string $data
): \GamingPlatform\Api\ConnectFour\V1\GetOpenGames {
static $template;
$template ??= new \GamingPlatform\Api\ConnectFour\V1\GetOpenGames();
$message = clone $template;
$message->mergeFromString($data);
return $message;
}

/** @deprecated */
public static function createGetOpenGamesResponse_Game(
string $data
): \GamingPlatform\Api\ConnectFour\V1\GetOpenGamesResponse\Game {
static $template;
$template ??= new \GamingPlatform\Api\ConnectFour\V1\GetOpenGamesResponse\Game();
$message = clone $template;
$message->mergeFromString($data);
return $message;
}

/** @deprecated */
public static function createGetOpenGamesResponse(
string $data
): \GamingPlatform\Api\ConnectFour\V1\GetOpenGamesResponse {
static $template;
$template ??= new \GamingPlatform\Api\ConnectFour\V1\GetOpenGamesResponse();
$message = clone $template;
$message->mergeFromString($data);
return $message;
}

/** @deprecated */
public static function createJoinGame(
string $data
Expand Down
58 changes: 58 additions & 0 deletions php/GamingPlatform/Api/ConnectFour/V1/GetOpenGames.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions php/GamingPlatform/Api/ConnectFour/V1/GetOpenGamesResponse.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

142 changes: 142 additions & 0 deletions php/GamingPlatform/Api/ConnectFour/V1/GetOpenGamesResponse/Game.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified php/GamingPlatform/Api/GPBMetadata/ConnectFour/V1/Messaging.php
Binary file not shown.
14 changes: 14 additions & 0 deletions schema/gamingplatform/api/connectfour/v1/messaging.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ message MakeMove {
message MakeMoveResponse {
}

message GetOpenGames {
int32 limit = 1;
}

message GetOpenGamesResponse {
message Game {
string game_id = 1;
int32 width = 2;
int32 height = 3;
string player_id = 4;
}
repeated Game games = 1;
}

message GetGamesByPlayer {
enum State {
STATE_UNSPECIFIED = 0;
Expand Down
Loading