pub struct MenuScene {Show 13 fields
pub name: String,
pub map: MapComponent,
pub camera: SceneCamera,
pub placements: Vec<Placement>,
pub meshes: Vec<Option<String>>,
pub sky: Option<String>,
pub vector: [f32; 4],
pub colors: [u32; 3],
pub floats: [f32; 5],
pub effect: Option<String>,
pub effect_value: f32,
pub particles: Vec<ParticlePlacement>,
pub particle_systems: Vec<Option<String>>,
}Expand description
A main-menu scene: its map, its placed models and particles, and its camera.
Fields§
§name: StringThe source .msc path.
map: MapComponentThe map.
camera: SceneCameraThe camera.
placements: Vec<Placement>The placed models.
meshes: Vec<Option<String>>The meshes.
sky: Option<String>The sky mesh.
vector: [f32; 4]The season values: snow, autumn colour, leaf loss and rain.
colors: [u32; 3]Sun, ambient and fog colours (0xAARRGGBB), as in EnvironmentMonth.
floats: [f32; 5]Fog start, fog end, fog maximum, sun yaw, sun pitch (inferred from the draw code).
effect: Option<String>The weather effect (from version 2).
effect_value: f32The weather effect’s intensity.
particles: Vec<ParticlePlacement>The placed particle systems.
particle_systems: Vec<Option<String>>The particle systems (chimney and iron smoke).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuScene
impl RefUnwindSafe for MenuScene
impl Send for MenuScene
impl Sync for MenuScene
impl Unpin for MenuScene
impl UnsafeUnpin for MenuScene
impl UnwindSafe for MenuScene
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more