some auto-refactoring

This commit is contained in:
2026-06-13 15:33:04 -05:00
parent 887e1fefea
commit 78547696d7
10 changed files with 146 additions and 180 deletions
-7
View File
@@ -1,7 +1,6 @@
use std::collections::BTreeMap;
use crate::archetype::Archetype;
use crate::archetype::Archetype::Empty;
use crate::font::FontSpec;
use crate::glyph::Glyph;
use crate::log::LogLine;
use crate::object_def::ObjectDef;
@@ -57,10 +56,6 @@ pub struct Board {
pub next_object_id: ObjectId,
/// Portals on this board. Parsed from the map file; not yet active.
pub portals: Vec<PortalDef>,
/// Optional font override for this board. When `None`, the app default is used.
pub font: Option<FontSpec>,
/// Integer scale factor applied to tiles when rendering this board. 1 = natural size.
pub zoom: u32,
/// Name of the board-level script in the world script pool, if any.
///
/// A board script runs on the board as a whole (e.g. `on_enter`, `on_tick`)
@@ -343,8 +338,6 @@ pub(crate) mod tests {
objects: object_map,
next_object_id,
portals: Vec::new(),
font: None,
zoom: 1,
board_script_name: None,
load_errors: Vec::new(),
}