item id to u64; item.dialogue -> item.dialogue_id
This commit is contained in:
@@ -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![
|
||||
|
||||
Reference in New Issue
Block a user