Skip to content

Commit

Permalink
Restore test_messages.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterPhoenix committed Feb 21, 2025
1 parent 66da9a0 commit b15fb69
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pb_fetch:
#for FN in protobufs/{steammessages_{physicalgoods,webui_friends},gc,test_messages}.proto; do \
# mv "$${FN}" "$${FN}.notouch"; \
#done;
mv ./protobufs/test_messages.proto ./protobufs/test_messages.proto.notouch
for FN in protobufs/*.steamclient.proto; do \
mv "$${FN}" "$${FN/.steamclient.proto/.proto}"; \
done;
Expand All @@ -78,6 +79,7 @@ pb_fetch:
#for FN in protobufs/*.proto.notouch; do \
# mv "$${FN}" "$${FN%.notouch}"; \
#done;
mv ./protobufs/test_messages.proto.notouch ./protobufs/test_messages.proto

pb_compile:
for filepath in ./protobufs/*.proto; do \
Expand All @@ -86,7 +88,9 @@ pb_compile:
sed -i '/^import sys/! s/^import /import steam.protobufs./' steam/protobufs/*_pb2.py

pb_clear:
mv ./protobufs/test_messages.proto ./protobufs/test_messages.proto.notouch
rm -f ./protobufs/*.proto ./steam/protobufs/*_pb2.py
mv ./protobufs/test_messages.proto.notouch ./protobufs/test_messages.proto

pb_services:
grep -B 99999 MARK_SERVICE_START steam/core/msg/unified.py > steam/core/msg/unified.py.tmp
Expand Down
25 changes: 25 additions & 0 deletions protobufs/test_messages.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto2";

message ComplexProtoMessage {
message InnerMessage {
optional string text = 1;
repeated uint32 numbers = 2;
}
message InnerBuffer {
message Flags {
optional bool flag = 1;
}

optional bytes data = 1;
repeated .ComplexProtoMessage.InnerBuffer.Flags flags = 2;
}

optional uint32 number32 = 1;
optional uint64 number64 = 2;

repeated uint32 list_number32 = 3;
repeated uint64 list_number64 = 4;

repeated .ComplexProtoMessage.InnerMessage messages = 5;
repeated .ComplexProtoMessage.InnerBuffer buffers = 6;
}
32 changes: 32 additions & 0 deletions steam/protobufs/test_messages_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b15fb69

Please sign in to comment.