-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.proto
77 lines (62 loc) · 2.05 KB
/
common.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
syntax = "proto3";
package cz.cuni.mff.fruiton.dto;
option java_package = "cz.cuni.mff.fruiton.dto";
option java_outer_classname = "CommonProtos";
import "chat.proto";
import "game.proto";
import "bazaar.proto";
message WrapperMessage {
oneof message {
ChatMessage chatMessage = 1;
ErrorMessage errorMessage = 2;
FindGame findGame = 3;
GameReady gameReady = 4;
PlayerReady playerReady = 5;
Action action = 6;
GameOver gameOver = 7;
GameRewards gameRewards = 8;
CancelFindingGame cancelFindingGame = 9;
GameStarts gameStarts = 10;
Notification notification = 11;
Surrender surrender = 12;
LoggedPlayerInfo loggedPlayerInfo = 13;
PlayersOnSameNetworkOnline playersOnSameNetworkOnline = 14;
PlayerOnSameNetworkOffline playerOnSameNetworkOffline = 15;
FriendRequest friendRequest = 16;
FriendRequestResult friendRequestResult = 17;
StatusChange statusChange = 18;
Timeout timeout = 19;
SetFraction setFraction = 20;
Challenge challenge = 21;
ChallengeResult challengeResult = 22;
RevokeChallenge revokeChallenge = 23;
DraftReady draftReady = 24;
DraftRequest draftRequest = 25;
DraftResponse draftResponse = 26;
DraftResult draftResult = 27;
DraftSurrenderMessage draftSurrenderMessage = 28;
StateCorrection stateCorrection = 29;
FriendRemoval friendRemoval = 30;
TradeOffer tradeOffer = 31;
BazaarOfferResult bazaarOfferResult = 32;
BazaarOfferResolvedOnTheWeb bazaarOfferResolvedOnTheWeb = 33;
Disconnected disconnected = 34;
}
}
message ErrorMessage {
enum ErrorId {
GENERAL = 0;
INVALID_TEAM = 1;
USE_OF_NOT_UNLOCKED_FRUITON = 2;
TRADE_OFFER_ERROR = 3;
}
string message = 1;
ErrorId errorId = 2;
}
message Notification {
string image = 1; // base64 encoded image or empty for default
string title = 2;
string text = 3;
}
message Disconnected {
}