-
Notifications
You must be signed in to change notification settings - Fork 0
/
lol_champion_service.proto
89 lines (76 loc) · 1.88 KB
/
lol_champion_service.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
// This file was created under Riot Games' "Legal Jibber Jabber" policy
// using assets owned by Riot Games.
// Riot Games does not endorse or sponsor this project.
// https://www.riotgames.com/en/legal
syntax = "proto3";
package pbkit.example;
option go_package="./gen";
service LolChampionService {
rpc ListChampions (ListChampionsRequest) returns (ListChampionsResponse);
rpc GetChampionStory (GetChampionStoryRequest) returns (GetChampionStoryResponse);
rpc GetChampionStats (GetChampionStatsRequest) returns (GetChampionStatsResponse);
rpc GetChampionSkills (GetChampionSkillsRequest) returns (GetChampionSkillsResponse);
}
// Requests {{{
message ListChampionsRequest {
}
message GetChampionStoryRequest {
string champion_key = 1;
}
message GetChampionStatsRequest {
string champion_key = 1;
}
message GetChampionSkillsRequest {
string champion_key = 1;
}
// }}} Requests
// Responses {{{
message ListChampionsResponse {
message Champion {
string key = 1;
string name = 2;
string title = 3;
string profile_image_url = 4;
repeated string types = 5;
}
repeated Champion champions = 1;
}
message GetChampionStoryResponse {
string story = 1;
string background_image_url = 2;
}
message GetChampionStatsResponse {
message Stat {
string name = 1;
double base = 2;
oneof per_level {
double exact = 3;
double proportional = 4;
}
}
repeated Stat stats = 1;
}
message GetChampionSkillsResponse {
enum SpellType {
UNSPECIFIED = 0;
PASSIVE = 1;
ACTIVE_Q = 2;
ACTIVE_W = 3;
ACTIVE_E = 4;
ACTIVE_R = 5;
}
message SpellStat {
string name = 1;
repeated double values = 2;
}
message Spell {
string name = 1;
string description = 2;
string image_url = 3;
SpellType type = 4;
int32 max_level = 5;
repeated SpellStat stats = 6;
}
repeated Spell spells = 1;
}
// }}} Responses