Skip to content

Commit

Permalink
make proto py script (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaihoE authored Aug 24, 2024
1 parent 3af349a commit 9658bd5
Show file tree
Hide file tree
Showing 11 changed files with 3,482 additions and 992 deletions.
1,093 changes: 1,093 additions & 0 deletions src/csgoproto/src/cs_usercmd.rs

Large diffs are not rendered by default.

472 changes: 265 additions & 207 deletions src/csgoproto/src/cstrike15_gcmessages.rs

Large diffs are not rendered by default.

286 changes: 237 additions & 49 deletions src/csgoproto/src/cstrike15_usermessages.rs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/csgoproto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod cs_usercmd;
pub mod cstrike15_gcmessages;
pub mod cstrike15_usermessages;
pub mod demo;
Expand All @@ -7,4 +8,5 @@ pub mod netmessages;
pub mod network_connection;
pub mod networkbasetypes;
pub mod steammessages;
pub mod usercmd;
pub mod usermessages;
5 changes: 4 additions & 1 deletion src/csgoproto/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ fn main() {
.includes(&["Protobufs/csgo/"])
.input("Protobufs/csgo/demo.proto")
.input("Protobufs/csgo/cstrike15_gcmessages.proto")
.input("Protobufs/csgo/cstrike15_usermessages.proto")
.input("Protobufs/csgo/usermessages.proto")
.input("Protobufs/csgo/networkbasetypes.proto")
.input("Protobufs/csgo/engine_gcmessages.proto")
.input("Protobufs/csgo/steammessages.proto")
.input("Protobufs/csgo/netmessages.proto")
.input("Protobufs/csgo/network_connection.proto")
.input("Protobufs/csgo/gcsdk_gcmessages.proto")
.out_dir("src2/")
.input("Protobufs/csgo/cs_usercmd.proto")
.input("Protobufs/csgo/usercmd.proto")
.out_dir("src/")
.customize(protobuf_codegen::Customize::default().tokio_bytes(true))
.run_from_script();
}
14 changes: 14 additions & 0 deletions src/csgoproto/src/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @generated

pub mod cs_usercmd;
pub mod cstrike15_gcmessages;
pub mod cstrike15_usermessages;
pub mod demo;
pub mod engine_gcmessages;
pub mod gcsdk_gcmessages;
pub mod netmessages;
pub mod network_connection;
pub mod networkbasetypes;
pub mod steammessages;
pub mod usercmd;
pub mod usermessages;
Loading

0 comments on commit 9658bd5

Please sign in to comment.