From 5968002fd5704770781e43270a4e3e2a2721df13 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 16 Oct 2025 11:08:19 -0400 Subject: graphics: stub draw_entity --- graphics/src/render.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/graphics/src/render.rs b/graphics/src/render.rs index 6a566ce..1164953 100644 --- a/graphics/src/render.rs +++ b/graphics/src/render.rs @@ -1,4 +1,4 @@ -use dungeon::Dungeon; +use dungeon::{Dungeon, Entity}; use raylib::{ color::Color, prelude::{RaylibDraw, RaylibDrawHandle}, @@ -76,7 +76,12 @@ impl<'a> Renderer<'a> { } /// Draw the player sprite - pub fn draw_player(&mut self, _dungeon: &Dungeon) { + pub fn draw_player(&mut self, dungeon: &Dungeon) { + self.draw_entity(dungeon.player()); + } + + /// Draws an entity + pub fn draw_entity(&mut self, _entity: &Entity) { // TODO: } -- cgit v1.2.3-freya