implement optional palette id for room
This commit is contained in:
@@ -143,7 +143,7 @@ pub fn item() -> Item {
|
||||
pub fn room() -> Room {
|
||||
Room {
|
||||
id: 10,
|
||||
palette_id: 9,
|
||||
palette_id: Some(9),
|
||||
name: Some("cellar 7".to_string()),
|
||||
tiles: vec![
|
||||
"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"1l".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),
|
||||
@@ -209,7 +209,7 @@ pub fn game_default() -> Game {
|
||||
rooms: vec![
|
||||
Room {
|
||||
id: 0,
|
||||
palette_id: 0,
|
||||
palette_id: Some(0),
|
||||
name: None,
|
||||
tiles: vec![
|
||||
"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),"0".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user