[][src]Struct genie_scx::convert::AutoToWK

pub struct 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]

pub fn convert(&self, scen: &mut Scenario) -> Result<(), ConvertError>[src]

Trait Implementations

impl Default for AutoToWK[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.