mirror of
https://codeberg.org/steam-vent/proto-tf2.git
synced 2026-06-03 14:24:08 +02:00
define tf2 GCHandshake
This commit is contained in:
parent
77976f6a62
commit
d05f2e560a
2 changed files with 22 additions and 0 deletions
20
src/handshake.rs
Normal file
20
src/handshake.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
use crate::base_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 {
|
||||||
|
440
|
||||||
|
}
|
||||||
|
|
||||||
|
fn hello(&self) -> Self::Hello {
|
||||||
|
self.hello.clone()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
//! steam-vent protobufs for tf2 specific messages
|
//! steam-vent protobufs for tf2 specific messages
|
||||||
|
|
||||||
mod generated;
|
mod generated;
|
||||||
|
mod handshake;
|
||||||
|
|
||||||
pub use generated::*;
|
pub use generated::*;
|
||||||
|
pub use handshake::GCHandshake;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue