Skip to content

Commit f2ace28

Browse files
update protobufs
1 parent d0901df commit f2ace28

11 files changed

+458
-264
lines changed

csgo/features/sharedobjects.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ def _handle_update(self, message):
220220
type_id, obj = result
221221
self.emit(('updated', type_id), obj)
222222

223-
def _handle_destroy(self, so):
224-
result = self._parse_object_data(so.type_id, so.object_data)
223+
def _handle_destroy(self, message):
224+
result = self._parse_object_data(message.type_id, message.object_data)
225225
if result:
226226
key, obj = result
227-
type_id = ESOType(so.type_id)
227+
type_id = ESOType(message.type_id)
228228
current = None
229229

230230
if key is NO_KEY:
@@ -239,10 +239,10 @@ def _handle_destroy(self, so):
239239
def _handle_update_multiple(self, message):
240240
for so_object in message.objects_modified:
241241
self._handle_update(so_object)
242-
for so_object in message.objects_added:
243-
self._handle_create(so_object)
244-
for so_object in message.objects_removed:
245-
self._handle_destroy(so_object)
242+
# for so_object in message.objects_added:
243+
# self._handle_create(so_object)
244+
# for so_object in message.objects_removed:
245+
# self._handle_destroy(so_object)
246246

247247
def _handle_client_welcome(self, message):
248248
for one in message.outofdate_subscribed_caches:

csgo/proto_enums.py

+11
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,20 @@ class EGCBaseClientMsg(IntEnum):
147147
class EGCItemCustomizationNotification(IntEnum):
148148
NameItem = 1006
149149
UnlockCrate = 1007
150+
XRayItemReveal = 1008
151+
XRayItemClaim = 1009
152+
CasketTooFull = 1011
153+
CasketContents = 1012
154+
CasketAdded = 1013
155+
CasketRemoved = 1014
156+
CasketInvFull = 1015
150157
NameBaseItem = 1019
151158
RemoveItemName = 1030
152159
RemoveSticker = 1053
153160
ApplySticker = 1086
154161
StatTrakSwap = 1088
155162
ActivateFanToken = 9178
163+
ActivateOperationCoin = 9179
156164
GraffitiUnseal = 9185
157165
GenerateSouvenir = 9204
158166

@@ -240,6 +248,9 @@ class EGCItemMsg(IntEnum):
240248
EMsgGCUserTrackTimePlayedConsecutively = 1089
241249
EMsgGCItemCustomizationNotification = 1090
242250
EMsgGCModifyItemAttribute = 1091
251+
EMsgGCCasketItemAdd = 1092
252+
EMsgGCCasketItemExtract = 1093
253+
EMsgGCCasketItemLoadContents = 1094
243254
EMsgGCTradingBase = 1500
244255
EMsgGCTrading_InitiateTradeRequest = 1501
245256
EMsgGCTrading_InitiateTradeResponse = 1502

csgo/protobufs/cstrike15_gcmessages_pb2.py

+141-73
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

csgo/protobufs/econ_gcmessages_pb2.py

+179-78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

csgo/protobufs/engine_gcmessages_pb2.py

+9-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

csgo/protobufs/gcsdk_gcmessages_pb2.py

+85-101
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen_enum_from_protos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
print(" })")
5151
else:
5252
print("\nclass {class_name}(IntEnum):".format(class_name=class_name))
53-
for ikey, ivalue in attrs.items():
53+
for ikey, ivalue in sorted(attrs.items(), key=lambda y: y[1]):
5454
print(" {} = {}".format(ikey, ivalue))
5555

5656
print("\n__all__ = [")

protobufs/cstrike15_gcmessages.proto

+8
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,14 @@ message CSOQuestProgress {
990990
optional uint32 bonus_points = 3;
991991
}
992992

993+
message CSOAccountSeasonalOperation {
994+
optional uint32 season_value = 1 [(key_field) = true];
995+
optional uint32 tier_unlocked = 2;
996+
optional uint32 premium_tiers = 3;
997+
optional uint32 mission_id = 4;
998+
optional uint32 missions_completed = 5;
999+
}
1000+
9931001
message CSOPersonaDataPublic {
9941002
optional int32 player_level = 1;
9951003
optional csgo.PlayerCommendationInfo commendation = 2;

protobufs/econ_gcmessages.proto

+16
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ enum EGCItemMsg {
8989
k_EMsgGCUserTrackTimePlayedConsecutively = 1089;
9090
k_EMsgGCItemCustomizationNotification = 1090;
9191
k_EMsgGCModifyItemAttribute = 1091;
92+
k_EMsgGCCasketItemAdd = 1092;
93+
k_EMsgGCCasketItemExtract = 1093;
94+
k_EMsgGCCasketItemLoadContents = 1094;
9295
k_EMsgGCTradingBase = 1500;
9396
k_EMsgGCTrading_InitiateTradeRequest = 1501;
9497
k_EMsgGCTrading_InitiateTradeResponse = 1502;
@@ -174,12 +177,20 @@ enum EUnlockStyle {
174177
enum EGCItemCustomizationNotification {
175178
k_EGCItemCustomizationNotification_NameItem = 1006;
176179
k_EGCItemCustomizationNotification_UnlockCrate = 1007;
180+
k_EGCItemCustomizationNotification_XRayItemReveal = 1008;
181+
k_EGCItemCustomizationNotification_XRayItemClaim = 1009;
182+
k_EGCItemCustomizationNotification_CasketTooFull = 1011;
183+
k_EGCItemCustomizationNotification_CasketContents = 1012;
184+
k_EGCItemCustomizationNotification_CasketAdded = 1013;
185+
k_EGCItemCustomizationNotification_CasketRemoved = 1014;
186+
k_EGCItemCustomizationNotification_CasketInvFull = 1015;
177187
k_EGCItemCustomizationNotification_NameBaseItem = 1019;
178188
k_EGCItemCustomizationNotification_RemoveItemName = 1030;
179189
k_EGCItemCustomizationNotification_RemoveSticker = 1053;
180190
k_EGCItemCustomizationNotification_ApplySticker = 1086;
181191
k_EGCItemCustomizationNotification_StatTrakSwap = 1088;
182192
k_EGCItemCustomizationNotification_ActivateFanToken = 9178;
193+
k_EGCItemCustomizationNotification_ActivateOperationCoin = 9179;
183194
k_EGCItemCustomizationNotification_GraffitiUnseal = 9185;
184195
k_EGCItemCustomizationNotification_GenerateSouvenir = 9204;
185196
}
@@ -197,6 +208,11 @@ message CMsgApplyAutograph {
197208
optional uint64 item_item_id = 2;
198209
}
199210

211+
message CMsgCasketItem {
212+
optional uint64 casket_item_id = 1;
213+
optional uint64 item_item_id = 2;
214+
}
215+
200216
message CMsgGCUserTrackTimePlayedConsecutively {
201217
optional uint32 state = 1;
202218
}

protobufs/engine_gcmessages.proto

+1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ message CEngineGotvSyncPacket {
1414
optional float rtdelay = 8;
1515
optional float rcvage = 9;
1616
optional float keyframe_interval = 10;
17+
optional uint32 cdndelay = 11;
1718
}
1819

protobufs/gcsdk_gcmessages.proto

-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ message CMsgSOMultipleObjects {
4848

4949
repeated csgo.CMsgSOMultipleObjects.SingleObject objects_modified = 2;
5050
optional fixed64 version = 3;
51-
repeated csgo.CMsgSOMultipleObjects.SingleObject objects_added = 4;
52-
repeated csgo.CMsgSOMultipleObjects.SingleObject objects_removed = 5;
5351
optional csgo.CMsgSOIDOwner owner_soid = 6;
5452
}
5553

0 commit comments

Comments
 (0)