Merge pull request 'Define csgo GCHandshake' (#1) from zargovv/proto-csgo:main into main

Reviewed-on: https://codeberg.org/steam-vent/proto-csgo/pulls/1
This commit is contained in:
Robin Appelman 2025-10-18 21:38:02 +02:00
commit 8bdf6018b2
2 changed files with 22 additions and 0 deletions

20
src/handshake.rs Normal file
View file

@ -0,0 +1,20 @@
use crate::gcsdk_gcmessages::{CMsgClientHello, CMsgClientWelcome};
#[derive(PartialEq, Clone, Default, Debug)]
pub struct GCHandshake {
pub hello: CMsgClientHello,
}
impl steam_vent_proto_common::GCHandshake for GCHandshake {
type Hello = CMsgClientHello;
type Welcome = CMsgClientWelcome;
fn app_id(&self) -> u32 {
730
}
fn hello(&self) -> Self::Hello {
self.hello.clone()
}
}

View file

@ -1,5 +1,7 @@
//! steam-vent protobufs for csgo specific messages
mod generated;
mod handshake;
pub use generated::*;
pub use handshake::GCHandshake;