Struct assembly_maps::luz::core::ZoneFile

source ·
pub struct ZoneFile<P: PathData> {
    pub file_version: FileVersion,
    pub file_revision: Option<u32>,
    pub world_id: WorldID,
    pub spawn_point: Option<Placement3D>,
    pub scene_refs: Vec<SceneRef>,
    pub something: String,
    pub map_filename: String,
    pub map_name: String,
    pub map_description: String,
    pub scene_transitions: Option<Vec<SceneTransition>>,
    pub path_data: Option<P>,
}
Expand description

The data in a luz file

Fields§

§file_version: FileVersion

Version of this file

§file_revision: Option<u32>

Revision of this file

§world_id: WorldID

ID of the world described

§spawn_point: Option<Placement3D>

Spawining placement of the player

§scene_refs: Vec<SceneRef>

List of scenes

§something: String

Unknown

§map_filename: String

Relative filename of the map

§map_name: String

Internal name of the map

§map_description: String

Internal description of the map

§scene_transitions: Option<Vec<SceneTransition>>

List of transitions

§path_data: Option<P>

Path data

Implementations§

Trait Implementations§

source§

impl<P: Debug + PathData> Debug for ZoneFile<P>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<P> Serialize for ZoneFile<P>
where P: Serialize + PathData,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&str> for ZoneFile<Vec<u8>>

§

type Error = LoadError

The type returned in the event of a conversion error.
source§

fn try_from(filename: &str) -> Result<Self, LoadError>

Performs the conversion.
source§

impl TryFrom<File> for ZoneFile<Vec<u8>>

§

type Error = LoadError

The type returned in the event of a conversion error.
source§

fn try_from(file: File) -> Result<Self, LoadError>

Performs the conversion.
source§

impl<T> TryFromLUZ<T> for ZoneFile<Vec<u8>>
where T: Read,

§

type Error = LoadError

source§

fn try_from_luz(buf: &mut T) -> Result<Self, Self::Error>

Auto Trait Implementations§

§

impl<P> Freeze for ZoneFile<P>
where P: Freeze,

§

impl<P> RefUnwindSafe for ZoneFile<P>
where P: RefUnwindSafe,

§

impl<P> Send for ZoneFile<P>
where P: Send,

§

impl<P> Sync for ZoneFile<P>
where P: Sync,

§

impl<P> Unpin for ZoneFile<P>
where P: Unpin,

§

impl<P> UnwindSafe for ZoneFile<P>
where P: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.