~starkingdoms/starkingdoms

ref: 06663f6e947e1f514a0dd87b4e256ef9de377d17 starkingdoms/crates/unified/src/server_plugins.rs -rw-r--r-- 530 bytes
06663f6e — core feat(netcode-rewrite): remove all networking 30 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bevy::app::{PluginGroup, PluginGroupBuilder};
use avian2d::PhysicsPlugins;
use avian2d::prelude::IslandPlugin;

pub struct ServerPluginGroup;

impl PluginGroup for ServerPluginGroup {
    fn build(self) -> PluginGroupBuilder {
        PluginGroupBuilder::start::<Self>()
            .add_group(
                PhysicsPlugins::default()
                    .with_length_unit(100.0)
                    .build()
                    .disable::<IslandPlugin>()
            )
            .add(crate::server::ServerPlugin)
    }
}