new layer model
This commit is contained in:
@@ -7,9 +7,9 @@ mod scripting;
|
||||
|
||||
use crate::archetype::Archetype;
|
||||
use crate::board::Board;
|
||||
use crate::floor::Floor;
|
||||
use crate::game::GameState;
|
||||
use crate::glyph::Glyph;
|
||||
use crate::layer::Layer;
|
||||
use crate::object_def::ObjectDef;
|
||||
use crate::utils::PlayerPos;
|
||||
use std::collections::{BTreeMap, HashMap};
|
||||
@@ -29,9 +29,9 @@ fn board_with_object(
|
||||
name: "test".into(),
|
||||
width: 1,
|
||||
height: 1,
|
||||
layers: vec![Layer {
|
||||
cells: vec![(Glyph::transparent(), Archetype::Empty)],
|
||||
}],
|
||||
grid: vec![(Glyph::transparent(), Archetype::Empty)],
|
||||
floor: Floor::Blank,
|
||||
decorations: Vec::new(),
|
||||
player: PlayerPos { x: 0, y: 0 },
|
||||
objects: BTreeMap::from([(1, object)]),
|
||||
next_object_id: 2,
|
||||
|
||||
Reference in New Issue
Block a user