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,4 +1,4 @@
use crate::{Position, from_base36, to_base36};
use crate::{Position, from_base36, ToBase36};
#[derive(Debug, Eq, PartialEq)]
pub enum Transition {
@@ -74,7 +74,7 @@ impl ToString for Exit {
fn to_string(&self) -> String {
format!(
"{} {}{}",
to_base36(self.room_id),
self.room_id.to_base36(),
self.position.to_string(),
self.effect.to_string()
)