diff options
| author | 1992414357@qq.com <1992414357@qq.com> | 2025-06-09 01:44:36 +0800 |
|---|---|---|
| committer | 1992414357@qq.com <1992414357@qq.com> | 2025-06-09 01:44:36 +0800 |
| commit | 49192dbb98e0ab1f2a66b4786fac86d63f69be64 (patch) | |
| tree | 7cdf27c7cab5fb6b1aabc2ac7c44b7b492558945 /core/examples/start_client_console.rs | |
| parent | c9dbba0d288becb7f05cebe526be25c76e5a850a (diff) | |
重构所有部分
Diffstat (limited to 'core/examples/start_client_console.rs')
| -rw-r--r-- | core/examples/start_client_console.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/core/examples/start_client_console.rs b/core/examples/start_client_console.rs deleted file mode 100644 index c4e0126..0000000 --- a/core/examples/start_client_console.rs +++ /dev/null @@ -1,24 +0,0 @@ -use std::net::{IpAddr, Ipv4Addr}; -use nogamepads_lib_rs::pad_data::pad_player_info::nogamepads_player_info::PlayerInfo; -use nogamepads_lib_rs::pad_service::client::nogamepads_client::PadClient; - -fn main() { - - // 构建玩家信息 - let mut player_info = PlayerInfo::new(); - player_info.setup_account_info( - env!("TEST_PLAYER_ACCOUNT"), - env!("TEST_PLAYER_PASSWORD")); - player_info.set_nickname(env!("TEST_PLAYER_NICKNAME")); - player_info.set_customize_color_hsv(320, 0.5, 1.0); // PINK - - // 构建客户端 - let mut client = PadClient::bind_addr( - IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)) - ); - client.bind_player(player_info); // 绑定玩家 - client.enable_console(); // 启用控制台 - - // 连接至目标地址 - client.connect(); -}
\ No newline at end of file |
