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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user