[−][src]Struct genie_scx::convert::AutoToWK
Convert an AoC or HD Edition scenario file to a WololoKingdoms one.
It will auto-detect the version of the file, and output a WK compatible scenario. AoC scenarios will have their unit and terrain IDs switched around so they have the correct look in WK. HD Edition scenarios will have all the new unit and terrain IDs mapped to WK IDs.
Usage
ⓘThis example is not tested
use genie_scx::convert::AutoToWK; AutoToWK::default().convert(&mut scenario)?
Implementations
impl AutoToWK
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AutoToWK
impl Send for AutoToWK
impl Sync for AutoToWK
impl Unpin for AutoToWK
impl UnwindSafe for AutoToWK
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,