Struct peppi::model::frame::Frame [−][src]
pub struct Frame<const N: usize> {
pub index: i32,
pub ports: [PortData; N],
pub start: Option<Start>,
pub end: Option<End>,
pub items: Option<Vec<Item>>,
}
Expand description
A single frame of the game. N
is the number of players in the game.
Fields
index: i32
Frame index (starts at peppi::game::FIRST_FRAME_INDEX
).
Indexes should never skip values, but may decrease if rollbacks
are enabled (see peppi::serde::collect::Opts
).
ports: [PortData; N]
Frame data for each port. The player with the lowest port is always at index 0.
start: Option<Start>
end: Option<End>
items: Option<Vec<Item>>
Trait Implementations
Auto Trait Implementations
impl<const N: usize> RefUnwindSafe for Frame<N>
impl<const N: usize> UnwindSafe for Frame<N>
Blanket Implementations
Mutably borrows from an owned value. Read more