|
|
|
|
@ -6,7 +6,6 @@ pub struct BaseGamePlugin {
|
|
|
|
|
pub name: String,
|
|
|
|
|
pub game_type: GameType,
|
|
|
|
|
pub target_resolution: WindowResolution,
|
|
|
|
|
pub resize_constraints: WindowResizeConstraints,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub enum GameType {
|
|
|
|
|
@ -21,7 +20,6 @@ impl Default for BaseGamePlugin {
|
|
|
|
|
name: "mygame".into(),
|
|
|
|
|
game_type: GameType::Three,
|
|
|
|
|
target_resolution: WindowResolution::default(),
|
|
|
|
|
resize_constraints: WindowResizeConstraints::default(),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -34,7 +32,6 @@ impl Plugin for BaseGamePlugin {
|
|
|
|
|
primary_window: Some(Window {
|
|
|
|
|
fit_canvas_to_parent: true,
|
|
|
|
|
resolution: self.target_resolution.clone(),
|
|
|
|
|
resize_constraints: self.resize_constraints.clone(),
|
|
|
|
|
..default()
|
|
|
|
|
}),
|
|
|
|
|
..default()
|
|
|
|
|
|