pub use yog_event::net::{SendToPlayer, send_to_player};
#[diagnostic::on_unimplemented(
message = "this mod sends to the server without saying so",
label = "sent to the server here",
note = "say it in yog.toml — `[network]` `to_server = true`: the mod then needs Yog on the server too"
)]
pub trait ServerChannel: yog_event::Arg<String> {}
#[cfg(feature = "to-server")]
impl ServerChannel for &str {}
#[cfg(feature = "to-server")]
impl ServerChannel for String {}
pub fn send_to_server(channel: impl ServerChannel, payload: impl yog_event::Arg<Vec<u8>>) -> bool {
yog_event::net::send_to_server(channel, payload)
}