Skip to main content

Crate bevy_networker_multiplayer

Crate bevy_networker_multiplayer 

Source
Expand description

Library entry point for bevy-networker-multiplayer.

This crate keeps the public API intentionally small:

  • NetResource gives access to the underlying socket layer.
  • Replicated marks entities that should exist on every peer.
  • #[sync] marks components and resources that should replicate.
  • #[netmsg] marks typed messages for request/response style traffic.
  • Optional prediction helpers live behind the prediction feature.

Re-exports§

pub extern crate networker_rs;

Re-exports§

pub use netmsg::NetMessage;
pub use netres::NetResource;
pub use replicated::Replicated;
pub use replicated::ReplicatedPlugin;
pub use bevy;
pub use bincode;
pub use inventory;
pub use serde;

Modules§

netmsg
Typed message support and hashing helpers.
netres
Network transport and connection management. Bridge between Bevy ECS state and the underlying socket transport.
replicated
Replicated entity marker and plugin wiring. Replicated entity marker and plugin wiring.
sync
Sync registration, snapshotting, and packet application. Sync registration, snapshots, and packet application.

Functions§

crate_name
Returns the published crate name.

Attribute Macros§

netmsg
Re-export the proc-macros that power sync and messages.
sync
Re-export the proc-macros that power sync and messages.

Derive Macros§

PredictLinearMotion
Re-export the proc-macros that power sync and messages.
Velocity2d
Re-export the proc-macros that power sync and messages.