mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-10 01:28:41 -06:00
sync
This commit is contained in:
parent
3d7083dc42
commit
e3ef07df67
|
@ -19,6 +19,7 @@ pub(crate) mod player;
|
|||
pub(crate) mod world;
|
||||
pub(crate) mod prefabs;
|
||||
pub(crate) mod transform;
|
||||
pub(crate) mod settings;
|
||||
|
||||
use rendering::{Rederer, RenderTarget, BackgroundColor, clear_background};
|
||||
use player::spawn_player;
|
||||
|
|
14
src/settings.rs
Normal file
14
src/settings.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use shipyard::Unique;
|
||||
|
||||
#[derive(Unique)]
|
||||
pub struct GameSettings {
|
||||
//there's a 1 chunk border of loaded but invisible around this
|
||||
pub render_distance: usize,
|
||||
}
|
||||
impl Default for GameSettings {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
render_distance: 5
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue