pub struct SetFile {
pub general: SetGeneral,
pub grass: Option<SetGrass>,
pub terrains: BTreeMap<u32, SetNamedType>,
pub crossers: BTreeMap<u32, SetNamedType>,
pub primary_rules: BTreeMap<u32, SetPrimaryRule>,
pub tiles: BTreeMap<u32, SetTile>,
pub tile_doors: BTreeMap<(u32, u32), SetTileDoor>,
pub groups: BTreeMap<u32, SetGroup>,
}Expand description
Parsed tileset payload.
The representation preserves the authored section structure explicitly: top-level metadata, terrain and crosser catalogs, primary rules, tiles, tile-door metadata, and groups remain distinct keyed collections rather than being flattened into one generic map.
§Examples
let set_file = nwnrs_set::SetFile::default();
assert!(set_file.tiles.is_empty());Fields§
§general: SetGeneralTop-level [GENERAL] metadata.
grass: Option<SetGrass>Optional [GRASS] block.
terrains: BTreeMap<u32, SetNamedType>[TERRAINN] entries keyed by terrain id.
crossers: BTreeMap<u32, SetNamedType>[CROSSERN] entries keyed by crosser id.
primary_rules: BTreeMap<u32, SetPrimaryRule>[PRIMARY RULEN] entries keyed by rule id.
tiles: BTreeMap<u32, SetTile>[TILEN] entries keyed by tile id.
tile_doors: BTreeMap<(u32, u32), SetTileDoor>[TILENMDOORK] entries keyed by (tile_id, door_id).
groups: BTreeMap<u32, SetGroup>[GROUPN] entries keyed by group id.
Implementations§
Trait Implementations§
impl StructuralPartialEq for SetFile
Auto Trait Implementations§
impl Freeze for SetFile
impl RefUnwindSafe for SetFile
impl Send for SetFile
impl Sync for SetFile
impl Unpin for SetFile
impl UnsafeUnpin for SetFile
impl UnwindSafe for SetFile
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