Function bevy_replicon::core::common_conditions::has_authority
source ยท pub fn has_authority(client: Option<Res<'_, RepliconClient>>) -> bool
Expand description
Returns true
if there is no client or if the existing client is disconnected.
Can be used for systems that run both on the server and in singleplayer mode.