@@ -47,12 +47,7 @@ message RegisterWithServiceRequest
47
47
48
48
message RegisterWithServiceResponse
49
49
{
50
- optional uint32 max_records_per_update = 1 [default = 0 ];
51
- optional uint32 max_criteria_per_record = 2 [default = 0 ];
52
- optional uint32 max_achievements_per_record = 3 [default = 0 ];
53
- optional uint32 max_registrations = 4 [default = 0 ];
54
- optional uint64 flush_frequency = 5 [default = 0 ];
55
- optional .bnet.protocol.achievements.Snapshot snapshot = 6 ;
50
+ optional .bnet.protocol.achievements.Snapshot snapshot = 1 ;
56
51
}
57
52
58
53
message UnregisterFromServiceRequest
@@ -80,12 +75,28 @@ message RequestSnapshotResponse
80
75
81
76
message InitializeRequest
82
77
{
83
- optional fixed32 program_id = 1 ;
78
+ optional fixed32 program_id = 1 [ default = 0 ] ;
84
79
}
85
80
86
81
message InitializeResponse
87
82
{
88
83
required .bnet.protocol.ContentHandle content_handle = 1 ;
84
+ optional uint32 max_records_per_update = 2 [default = 0 ];
85
+ optional uint32 max_criteria_per_record = 3 [default = 0 ];
86
+ optional uint32 max_achievements_per_record = 4 [default = 0 ];
87
+ optional uint32 max_registrations = 5 [default = 0 ];
88
+ optional uint64 flush_frequency = 6 [default = 0 ];
89
+ }
90
+
91
+ message StaticDataHash
92
+ {
93
+ required fixed32 program_id = 1 ;
94
+ required string hash = 2 ;
95
+ }
96
+
97
+ message ValidateStaticDataRequest
98
+ {
99
+ repeated .bnet.protocol.achievements.StaticDataHash static_data_hash = 1 ;
89
100
}
90
101
91
102
message SnapshotUpdateNotification
@@ -94,6 +105,32 @@ message SnapshotUpdateNotification
94
105
required .bnet.protocol.achievements.Snapshot snapshot = 2 ;
95
106
}
96
107
108
+ message AchievementStats
109
+ {
110
+ required uint64 id = 1 ;
111
+ required uint64 count = 2 ;
112
+ }
113
+
114
+ message GetAchievementStatsRequest
115
+ {
116
+ required fixed32 program_id = 1 ;
117
+ }
118
+
119
+ message GetAchievementStatsResponse
120
+ {
121
+ repeated .bnet.protocol.achievements.AchievementStats stats = 1 ;
122
+ }
123
+
124
+ message GetCriteriaStatsRequest
125
+ {
126
+ required fixed32 program_id = 1 ;
127
+ }
128
+
129
+ message GetCriteriaStatsResponse
130
+ {
131
+ repeated .bnet.protocol.achievements.AchievementStats stats = 1 ;
132
+ }
133
+
97
134
service AchievementsService
98
135
{
99
136
rpc PostUpdate (.bnet .protocol .achievements .PostUpdateRequest ) returns (.bnet .protocol .achievements .PostUpdateResponse )
@@ -116,6 +153,10 @@ service AchievementsService
116
153
{
117
154
option (method_id) = 5 ;
118
155
}
156
+ rpc ValidateStaticData (.bnet .protocol .achievements .ValidateStaticDataRequest ) returns (.bnet .protocol .NoData )
157
+ {
158
+ option (method_id) = 6 ;
159
+ }
119
160
}
120
161
121
162
service AchievementsNotify
@@ -126,3 +167,15 @@ service AchievementsNotify
126
167
}
127
168
}
128
169
170
+ service AchievementsUtils
171
+ {
172
+ rpc GetAchievementStats (.bnet .protocol .achievements .GetAchievementStatsRequest ) returns (.bnet .protocol .achievements .GetAchievementStatsResponse )
173
+ {
174
+ option (method_id) = 1 ;
175
+ }
176
+ rpc GetCriteriaStats (.bnet .protocol .achievements .GetCriteriaStatsRequest ) returns (.bnet .protocol .achievements .GetCriteriaStatsResponse )
177
+ {
178
+ option (method_id) = 2 ;
179
+ }
180
+ }
181
+
0 commit comments