Crates.io | nevy |
lib.rs | nevy |
version | 0.0.1 |
source | src |
created_at | 2023-12-31 00:15:50.607643 |
updated_at | 2023-12-31 00:15:50.607643 |
description | Simple, expressive networking for your bevy games |
homepage | |
repository | https://github.com/DrewRidley/nevy |
max_upload_size | |
id | 1084492 |
size | 8,127 |
Nevy is an advanced networking framework designed for the Bevy game engine. It combines Bevy's simplicity with robust networking capabilities, making it an ideal choice for developers building interconnected gaming experiences.
NetBundle
to encapsulate networked entities, providing a clean and organized approach to manage game states and behaviors.Here's a simple example to get you started with Nevy:
#[derive(NetBundle)]
#[init(init_player)]
pub struct PlayerBundle {
#[sync(always)]
name: Name,
#[server]
role: Role
}
fn test(mut cmds: Commands) {
cmds.spawn_networked::<PlayerBundle>(ServerPlayerBundle {
name: Name::new("Blah"),
role: Role::User
});
}