item id to u64; item.dialogue -> item.dialogue_id

This commit is contained in:
2020-04-13 14:47:15 +01:00
parent c7f1d7220c
commit 45ee94aae9
2 changed files with 13 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ pub fn sprite() -> Sprite {
pub fn item() -> Item {
Item {
id: "6".to_string(),
id: 6,
animation_frames: vec![
Image {
pixels: vec![
@@ -112,7 +112,7 @@ pub fn item() -> Item {
}
],
name: Some("door".to_string()),
dialogue: Some("ITM_2".to_string())
dialogue_id: Some("ITM_2".to_string())
}
}
@@ -270,7 +270,7 @@ pub fn game_default() -> Game {
],
items: vec![
Item {
id: "0".to_string(),
id: 0,
animation_frames: vec![
Image {
pixels: vec![
@@ -286,7 +286,7 @@ pub fn game_default() -> Game {
},
],
name: Some("tea".to_string()),
dialogue: Some("ITM_0".to_string())
dialogue_id: Some("ITM_0".to_string())
},
],
dialogues: vec![