You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
512 B
19 lines
512 B
use bevy::prelude::*; |
|
|
|
pub(crate) mod protocol; |
|
|
|
mod client; |
|
mod client_webtransport; |
|
mod server; |
|
mod server_webtransport; |
|
|
|
pub use crate::network::client_webtransport::ConnectWebTransportCommand; |
|
pub use crate::network::server::StartLocalServerCommand; |
|
#[cfg(not(target_family = "wasm"))] |
|
pub use crate::network::server_webtransport::StartWebTransportServerCommand; |
|
|
|
pub const DEFAULT_PORT: u16 = 13580; |
|
|
|
pub fn plugin(app: &mut App) { |
|
app.add_plugins((protocol::plugin, client::plugin, server::plugin)); |
|
}
|
|
|