From 5b4c4838496b7c2d69dece5881aff1c9a8c49c4c Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 23 Jan 2024 15:50:16 -0800 Subject: [PATCH] Minor edit --- crates/content/src/spriteautomaton.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/content/src/spriteautomaton.rs b/crates/content/src/spriteautomaton.rs index 5aaaed1..17a7ea2 100644 --- a/crates/content/src/spriteautomaton.rs +++ b/crates/content/src/spriteautomaton.rs @@ -313,4 +313,9 @@ impl SpriteAutomaton { fade: self.current_edge_progress / self.current_edge_duration, }; } + + /// Get the sprite this automaton is using + pub fn get_sprite(&self) -> SpriteHandle { + self.sprite + } }