pub struct Room {
pub id: String,
pub palette_id: Option<String>,
pub name: Option<String>,
pub tiles: Vec<String>,
pub items: Vec<Instance>,
pub exits: Vec<ExitInstance>,
pub endings: Vec<Instance>,
pub walls: Option<Vec<String>>,
}
Fields§
§id: String
§palette_id: Option<String>
palette ID was optional in very early versions
name: Option<String>
§tiles: Vec<String>
tile IDs
items: Vec<Instance>
§exits: Vec<ExitInstance>
§endings: Vec<Instance>
§walls: Option<Vec<String>>
old method of handling walls - a comma-separated list of tile IDs
Implementations§
Trait Implementations§
impl Eq for Room
impl StructuralPartialEq for Room
Auto Trait Implementations§
impl Freeze for Room
impl RefUnwindSafe for Room
impl Send for Room
impl Sync for Room
impl Unpin for Room
impl UnwindSafe for Room
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