pub struct World {
pub player_name: String,
pub warrior_level: usize,
pub floor: Floor,
pub player: Box<dyn Player + Send + Sync>,
pub warrior: Unit,
pub other_units: Vec<Unit>,
}Expand description
The mutating game state managed by the engine.
Fields§
§player_name: String§warrior_level: usize§floor: Floor§player: Box<dyn Player + Send + Sync>§warrior: Unit§other_units: Vec<Unit>Implementations§
Auto Trait Implementations§
impl Freeze for World
impl !RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl !UnwindSafe for World
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