[][src]Struct rust_action_heroes::assets::game_level::LevelFormat

pub(crate) struct LevelFormat;

LevelFormat, like RonFormat, is a file format for storing data.

Amethyst requires I implement this to store custom meta-data.

I tried for a long time to store levels in Ron format, but storing an entire level in Ron was unweildy.

Instead I opted to write my own ascii-art level file format and write a parser for it. The parser just goes character by character and adds coordinates for different entity types to the GameLevel struct.

As an added bonus, you can write your own levels for Rust Action heroes pretty easiliy!

Example level

######
#g h #
# v s#####
#ksc  lde#
##########

This has all three playable characters, a crate, a key, a lock, a two switches, a door, and an exit. Is that level even beatable?

Trait Implementations

impl Clone for LevelFormat[src]

impl Copy for LevelFormat[src]

impl Debug for LevelFormat[src]

impl Default for LevelFormat[src]

impl Format<GameLevel> for LevelFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for LevelFormat

impl Send for LevelFormat

impl Sync for LevelFormat

impl Unpin for LevelFormat

impl UnwindSafe for LevelFormat

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Clone for T where
    T: Clone
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,