-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsdk.proto
132 lines (110 loc) · 3.24 KB
/
sdk.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
syntax = "proto2";
package com.amazon.whitewater.auxproxy.pbuffer;
message GameProperty {
optional string key = 1;
optional string value = 2;
}
message GameSession {
optional string gameSessionId = 1;
optional string fleetId = 2;
optional string name = 3;
optional int32 maxPlayers = 4 [default = 0];
optional bool joinable = 5 [default = false];
repeated GameProperty gameProperties = 6;
optional int32 port = 7 [default = 0];
optional string ipAddress = 8;
optional string gameSessionData = 9;
optional string matchmakerData = 10;
optional string dnsName = 11;
}
message UpdateGameSession {
optional GameSession gameSession = 1;
optional string updateReason = 2;
optional string backfillTicketId = 3;
}
message ProcessReady {
repeated string logPathsToUpload = 1;
optional int32 port = 2 [default = 0];
}
message ProcessEnding {
}
message AttributeValue {
optional int32 type = 1 [default = 0];
optional string S = 2;
optional double N = 3 [default = 0];
repeated string SL = 4;
map<string,double> SDM = 5;
}
message BackfillMatchmakingRequest {
optional string ticketId = 1;
optional string gameSessionArn = 2;
optional string matchmakingConfigurationArn = 3;
repeated Player players = 4;
}
message Player {
optional string playerId = 1;
map<string,AttributeValue> playerAttributes = 2;
optional string team = 3;
map<string,int32> latencyInMs = 4;
}
message BackfillMatchmakingResponse {
optional string ticketId = 1;
}
message StopMatchmakingRequest {
optional string ticketId = 1;
optional string gameSessionArn = 2;
optional string matchmakingConfigurationArn = 3;
}
message GameSessionTerminate {
optional string gameSessionId = 1;
}
message UpdatePlayerSessionCreationPolicy {
optional string gameSessionId = 1;
optional string newPlayerSessionCreationPolicy = 2;
}
message AcceptPlayerSession {
optional string gameSessionId = 1;
optional string playerSessionId = 2;
}
message RemovePlayerSession {
optional string gameSessionId = 1;
optional string playerSessionId = 2;
}
message ReportHealth {
required bool healthStatus = 1;
}
message DescribePlayerSessionsRequest {
optional string gameSessionId = 1;
optional string playerId = 2;
optional string playerSessionId = 3;
optional string playerSessionStatusFilter = 4;
optional string nextToken = 5;
optional int32 limit = 6 [default = 0];
}
message ActivateGameSession {
optional GameSession gameSession = 1;
}
message TerminateProcess {
optional int64 terminationTime = 1 [default = 0];
}
message DescribePlayerSessionsResponse {
optional string nextToken = 1;
repeated PlayerSession playerSessions = 2;
}
message PlayerSession {
optional string playerSessionId = 1;
optional string playerId = 2;
optional string gameSessionId = 3;
optional string fleetId = 4;
optional string ipAddress = 5;
optional string status = 6;
optional int64 creationTime = 7 [default = 0];
optional int64 terminationTime = 8 [default = 0];
optional int32 port = 9 [default = 0];
optional string playerData = 10;
optional string dnsName = 11;
}
message GameSessionActivate {
optional string GameSessionId = 1;
optional int32 MaxPlayers = 2 [default = 0];
}