pub struct ZoneFile<P>where
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> Serialize for ZoneFile<P>
impl<P> Serialize for ZoneFile<P>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more