1
This commit is contained in:
parent
91ea484067
commit
cc60d5f801
@ -13,20 +13,8 @@ use r9_macro_derive::Singleton;
|
||||
pub mod app;
|
||||
pub mod cs;
|
||||
//pub mod mtb;
|
||||
|
||||
pub trait MsgHandler {
|
||||
/*
|
||||
fn cm_join(_: &f9::MsgHdr, _: Rc::<RefCell::<cs_proto::CMJoin>>) {
|
||||
}
|
||||
|
||||
fn cm_move(&self, _: &f9::MsgHdr, _: Rc::<RefCell::<cs_proto::CMMove>>) {
|
||||
|
||||
}
|
||||
|
||||
fn cm_emote(_: &f9::MsgHdr, _: Rc::<RefCell::<cs_proto::CMEmote>>) {
|
||||
}
|
||||
*/
|
||||
}
|
||||
use crate::cs::cs_auto_gen as cs_auto;
|
||||
use crate::cs::cs_proto as cs_proto;
|
||||
|
||||
#[derive(SharedFromSelf)]
|
||||
pub struct Player {
|
||||
@ -40,17 +28,12 @@ pub struct PlayerNetHandler {
|
||||
self_wp: Weak::<RefCell::<Player>>,
|
||||
}
|
||||
|
||||
impl MsgHandler for PlayerNetHandler {
|
||||
}
|
||||
impl cs_auto::MsgHandler for PlayerNetHandler {
|
||||
|
||||
impl PlayerNetHandler {
|
||||
|
||||
/*
|
||||
pub fn cm_move(hdr: &f9::MsgHdr,
|
||||
msg: Rc::<RefCell::<cs_proto::CMMove>>) {
|
||||
println!("seq:{}", msg.borrow().get_seq());
|
||||
fn CMPing(&self, _: &f9::MsgHdr, _: Rc::<RefCell::<cs_proto::CMPing>>) {
|
||||
panic!("not implement");
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
#[derive(SharedFromSelf)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user