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,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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user