[−][src]Struct genie_scx::Scenario
A Scenario file.
Methods
impl Scenario
[src]
pub fn from<R: Read>(input: &mut R) -> Result<Self>
[src]
Read a scenario file.
pub fn write_to<W: Write>(&self, output: &mut W) -> Result<()>
[src]
pub fn write_to_version<W: Write>(
&self,
output: &mut W,
version: &VersionBundle
) -> Result<()>
[src]
&self,
output: &mut W,
version: &VersionBundle
) -> Result<()>
pub fn format_version(&self) -> SCXVersion
[src]
Get the format version of this SCX file.
pub fn header_version(&self) -> u32
[src]
Get the header version for this SCX file.
pub fn data_version(&self) -> f32
[src]
Get the data version for this SCX file.
pub fn header(&self) -> &SCXHeader
[src]
Get the header.
pub fn description(&self) -> Option<&str>
[src]
Get the scenario description.
pub fn filename(&self) -> &str
[src]
Get the scenario filename.
pub fn version(&self) -> &VersionBundle
[src]
pub fn requires_dlc(&self, dlc: DLCPackage) -> bool
[src]
pub fn objects(&self) -> impl Iterator<Item = &ScenarioObject>
[src]
pub fn objects_mut(&mut self) -> impl Iterator<Item = &mut ScenarioObject>
[src]
pub fn map(&self) -> &Map
[src]
pub fn map_mut(&mut self) -> &mut Map
[src]
pub fn triggers(&self) -> Option<&TriggerSystem>
[src]
pub fn triggers_mut(&mut self) -> Option<&mut TriggerSystem>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,