pub struct TurnOutcome<P: BattleProvider + ?Sized> {
pub events: Vec<TurnEvent<P>>,
pub battle_over: Option<BattleEnd>,
}Expand description
The result of executing one turn.
Fields§
§events: Vec<TurnEvent<P>>Ordered events produced this turn, ready to drive the game’s UI.
battle_over: Option<BattleEnd>Some if the battle ended this turn.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for TurnOutcome<P>where
P: ?Sized,
impl<P> RefUnwindSafe for TurnOutcome<P>
impl<P> Send for TurnOutcome<P>
impl<P> Sync for TurnOutcome<P>
impl<P> Unpin for TurnOutcome<P>
impl<P> UnsafeUnpin for TurnOutcome<P>where
P: ?Sized,
impl<P> UnwindSafe for TurnOutcome<P>
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