implement ToBase36 for u64; room id to u64; sprite id to u64; tile id to u64; sprite.dialogue -> sprite.dialogue_id

This commit is contained in:
2020-04-13 14:43:23 +01:00
parent f424c49301
commit c7f1d7220c
7 changed files with 48 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
use crate::colour::Colour;
use crate::{from_base36, to_base36};
use crate::{from_base36, ToBase36};
#[derive(Debug, Eq, PartialEq)]
pub struct Palette {
@@ -44,7 +44,7 @@ impl ToString for Palette {
}
colours.pop();
format!("PAL {}\n{}{}", to_base36(self.id), name, colours)
format!("PAL {}\n{}{}", self.id.to_base36(), name, colours)
}
}