feat(client): 同步每路镜像并精简操控入口与 HUD 映射
This commit is contained in:
28 files changed
+503
-62
No files matched your search
@@ -47,6 +47,8 @@
|
||||
//! ```
|
||||
|
||||
use std::net::{Ipv4Addr, SocketAddrV4};
|
||||
mod camera_mirror;
|
||||
pub use camera_mirror::CameraMirror;
|
||||
|
||||
mod match_state;
|
||||
pub use match_state::MatchState;
|
||||
@@ -136,6 +138,7 @@ pub enum MsgType {
|
||||
MatchResult = 10,
|
||||
/// 选手端定向发送给已绑定装甲板的四轴速度与发射状态。
|
||||
OperatorControl = 11,
|
||||
CameraMirror = 12,
|
||||
}
|
||||
|
||||
impl MsgType {
|
||||
@@ -153,6 +156,7 @@ impl MsgType {
|
||||
9 => MsgType::ArmorReset,
|
||||
10 => MsgType::MatchResult,
|
||||
11 => MsgType::OperatorControl,
|
||||
12 => MsgType::CameraMirror,
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user