aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/traits/textures.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:21 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:21 +0100
commit58ae76634da13423894a958e3a71cf8f001054e4 (patch)
treef017868a5af70e92d2bffb7547e59bf63473bf13 /stockton-levels/src/traits/textures.rs
parent4dacd2a58f778818d7c2f4d73980b0967c7202b4 (diff)
feat(levels): add get_texture method to HasTextures trait
Diffstat (limited to 'stockton-levels/src/traits/textures.rs')
-rw-r--r--stockton-levels/src/traits/textures.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/stockton-levels/src/traits/textures.rs b/stockton-levels/src/traits/textures.rs
index ffd2a2f..16213ea 100644
--- a/stockton-levels/src/traits/textures.rs
+++ b/stockton-levels/src/traits/textures.rs
@@ -146,4 +146,5 @@ pub trait HasTextures {
type TexturesIter<'a>: Iterator<Item = &'a Texture>;
fn textures_iter<'a>(&'a self) -> Self::TexturesIter<'a>;
+ fn get_texture<'a>(&'a self, idx: u32) -> &'a Texture;
}