From d16fe269aec12c88d22054d87cdef84e2b55b100 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 7 Oct 2025 11:42:05 -0400 Subject: impl default to dungeon and its types --- dungeon/src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'dungeon/src/lib.rs') diff --git a/dungeon/src/lib.rs b/dungeon/src/lib.rs index 66faec3..84fc339 100644 --- a/dungeon/src/lib.rs +++ b/dungeon/src/lib.rs @@ -52,7 +52,10 @@ impl Dungeon { } impl Default for Dungeon { - fn default() -> Self { - Self::new() - } + fn default() -> Self { + let floor = Floor::default(); + let player = Entity::player(floor.player_start()); + + Self { player, floor } + } } -- cgit v1.2.3-freya