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:
14
src/mock.rs
14
src/mock.rs
@@ -69,7 +69,7 @@ pub fn avatar() -> Avatar {
|
||||
|
||||
pub fn sprite() -> Sprite {
|
||||
Sprite {
|
||||
id: "a".to_string(),
|
||||
id: 10,
|
||||
name: Some("hatch".to_string()),
|
||||
animation_frames: vec![
|
||||
Image {
|
||||
@@ -85,8 +85,8 @@ pub fn sprite() -> Sprite {
|
||||
]
|
||||
}
|
||||
],
|
||||
dialogue: Some("SPR_0".to_string()),
|
||||
room: "4".to_string(),
|
||||
dialogue_id: Some("SPR_0".to_string()),
|
||||
room_id: 4,
|
||||
position: Position {
|
||||
x: 9,
|
||||
y: 7
|
||||
@@ -208,7 +208,7 @@ pub fn game_default() -> Game {
|
||||
],
|
||||
tiles: vec![
|
||||
Tile {
|
||||
id: "a".to_string(),
|
||||
id: 10,
|
||||
name: None,
|
||||
wall: false,
|
||||
animation_frames: vec![
|
||||
@@ -247,7 +247,7 @@ pub fn game_default() -> Game {
|
||||
},
|
||||
sprites: vec![
|
||||
Sprite {
|
||||
id: "a".to_string(),
|
||||
id: 10,
|
||||
name: None,
|
||||
animation_frames: vec![
|
||||
Image {
|
||||
@@ -263,8 +263,8 @@ pub fn game_default() -> Game {
|
||||
]
|
||||
}
|
||||
],
|
||||
dialogue: Some("SPR_0".to_string()),
|
||||
room: "0".to_string(),
|
||||
dialogue_id: Some("SPR_0".to_string()),
|
||||
room_id: 0,
|
||||
position: Position { x: 8, y: 12 }
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user