This commit is contained in:
2020-06-24 12:39:26 +01:00
parent 58ffb92e52
commit 632aaff4b9
2 changed files with 6 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ pub struct Game {
#[derive(Debug)]
pub struct GameHasNoAvatar;
// todo no tiles? no rooms? no palettes?
// todo no tiles? no rooms? no palettes? turn this into an enum?
impl Game {
#[inline]
@@ -376,6 +376,8 @@ impl Game {
self.items.iter().map(|item| item.id.clone()).collect()
}
// todo dedupe?
/// first available tile ID.
/// e.g. if current tile IDs are [0, 2, 3] the result will be `1`
/// if current tile IDs are [0, 1, 2] the result will be `3`