diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-07-01 21:07:07 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-07-01 21:07:07 +0200 |
commit | d23a63288dec711b93dfa6702233c29287918cd9 (patch) | |
tree | 2847ed28290efdf1e7eadbb5b98c8d149f7cf847 /src/input | |
parent | 26aefe70fa11f209726e5b8a15bd05303726396e (diff) |
Built bitwise game state from current game state
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/json.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/input/json.rs b/src/input/json.rs index fb88bf0..319c77a 100644 --- a/src/input/json.rs +++ b/src/input/json.rs @@ -32,7 +32,7 @@ pub fn read_bitwise_state_from_file(filename: &str) -> Result<bitwise_engine::Bi unconstructed: Vec::new(), buildings: [0,0,0,0], energy_towers: 0, - missile_towers: [0,0,0], + missile_towers: [0,0,0,0], missiles: [(0,0),(0,0),(0,0),(0,0)], tesla_cooldowns: [bitwise_engine::TeslaCooldown { active: false, @@ -42,14 +42,13 @@ pub fn read_bitwise_state_from_file(filename: &str) -> Result<bitwise_engine::Bi active: false, pos: engine::geometry::Point::new(0,0), cooldown: 0 - }], - unoccupied: Vec::new() + }] }, opponent_buildings: bitwise_engine::PlayerBuildings { unconstructed: Vec::new(), buildings: [0,0,0,0], energy_towers: 0, - missile_towers: [0,0,0], + missile_towers: [0,0,0,0], missiles: [(0,0),(0,0),(0,0),(0,0)], tesla_cooldowns: [bitwise_engine::TeslaCooldown { active: false, @@ -59,8 +58,7 @@ pub fn read_bitwise_state_from_file(filename: &str) -> Result<bitwise_engine::Bi active: false, pos: engine::geometry::Point::new(0,0), cooldown: 0 - }], - unoccupied: Vec::new() + }] } }) } |