Skip to main content

CinematicFile

Struct CinematicFile 

Source
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: String

The cinematic’s id; it must be the file’s name.

§length: Length

How 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>

Source§

const NAME: &'static str = "cinematic"

What messages call the kind, in lowercase words: "image", "palette".
Source§

impl<S: Debug, P: Debug> Debug for CinematicFile<S, P>

Source§

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

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

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>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<S: PartialEq, P: PartialEq> PartialEq for CinematicFile<S, P>

Source§

fn eq(&self, other: &CinematicFile<S, P>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<S, P> Serialize for CinematicFile<S, P>
where S: Serialize, P: Serialize,

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<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>

§

impl<S, P> Send for CinematicFile<S, P>
where P: Send, S: Send,

§

impl<S, P> Sync for CinematicFile<S, P>
where P: Sync, S: Sync,

§

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>

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<K> Bakeable for K

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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>,

Source§

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>,

Source§

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.