pub struct CinematicFile<S, P = ()> {
pub id: String,
pub length: Length,
pub actions: BTreeMap<String, P>,
pub shots: Vec<TimedShot<S>>,
}Expand description
A cinematic file as written, before any check: S is a shot and P
a list of actions as the game writes them (() for a game whose
shots share none).
Fields§
§id: StringThe cinematic’s id; it must be the file’s name.
length: LengthHow long it is.
actions: BTreeMap<String, P>Lists by name, for shots to share.
shots: Vec<TimedShot<S>>The shots and when each starts.
Trait Implementations§
Source§impl<S: 'static, P: 'static> AssetKind for CinematicFile<S, P>
impl<S: 'static, P: 'static> AssetKind for CinematicFile<S, P>
Source§impl<'de, S, P> Deserialize<'de> for CinematicFile<S, P>where
S: Deserialize<'de>,
P: Deserialize<'de>,
impl<'de, S, P> Deserialize<'de> for CinematicFile<S, P>where
S: Deserialize<'de>,
P: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S, P> Serialize for CinematicFile<S, P>
impl<S, P> Serialize for CinematicFile<S, P>
impl<S: PartialEq, P: PartialEq> StructuralPartialEq for CinematicFile<S, P>
Auto Trait Implementations§
impl<S, P> Freeze for CinematicFile<S, P>
impl<S, P> RefUnwindSafe for CinematicFile<S, P>where
S: RefUnwindSafe,
P: RefUnwindSafe,
impl<S, P> Send for CinematicFile<S, P>
impl<S, P> Sync for CinematicFile<S, P>
impl<S, P> Unpin for CinematicFile<S, P>where
S: Unpin,
impl<S, P> UnsafeUnpin for CinematicFile<S, P>
impl<S, P> UnwindSafe for CinematicFile<S, P>where
P: RefUnwindSafe,
S: UnwindSafe,
Blanket Implementations§
impl<K> Bakeable for K
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