move some of var's constants into common
This commit is contained in:
parent
7f3770cf49
commit
2d42edb69c
|
@ -14,6 +14,9 @@ use bevy::prelude::*;
|
|||
|
||||
pub use bevy::math::{DVec3, DQuat};
|
||||
|
||||
pub const WINDOW_TITLE: &str = "OutFly";
|
||||
pub const FONT: &str = "fonts/Yupiter-Regular.ttf";
|
||||
|
||||
pub use std::f32::consts::PI as PI32;
|
||||
pub use std::f64::consts::PI;
|
||||
pub const EPSILON32: f32 = 1e-9;
|
||||
|
|
|
@ -31,7 +31,7 @@ pub mod prelude {
|
|||
pub use crate::{actor, audio, camera, chat, cmd, common, game, hud,
|
||||
load, menu, nature, var, visual, world};
|
||||
pub use crate::common::*;
|
||||
pub use crate::var::{FONT, Settings};
|
||||
pub use crate::var::Settings;
|
||||
pub use crate::load::load_asset;
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ fn setup(
|
|||
window.cursor.grab_mode = CursorGrabMode::Locked;
|
||||
window.cursor.visible = false;
|
||||
window.mode = opt.window_mode_initial;
|
||||
window.title = var::WINDOW_TITLE.to_string();
|
||||
window.title = common::WINDOW_TITLE.to_string();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@ use toml_edit::DocumentMut;
|
|||
use std::env;
|
||||
use std::fs;
|
||||
|
||||
pub const WINDOW_TITLE: &str = "OutFly";
|
||||
pub const FONT: &str = "fonts/Yupiter-Regular.ttf";
|
||||
|
||||
pub const SCOPE_SEPARATOR: &str = "$";
|
||||
|
||||
pub const TOKEN_EQUALS: &str = "==";
|
||||
|
|
Loading…
Reference in a new issue