summaryrefslogtreecommitdiff
path: root/src/client/construction.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-02-20 13:09:11 -0600
committertom barrett <spalf0@gmail.com>2019-02-20 13:09:11 -0600
commitc6be289134c1f749884d269f955b39d39b604469 (patch)
treef28411c2c3215e757c8e89acc2eb7eae308f97da /src/client/construction.rs
parentadab367eb1590f78c89806335e46fb689b9719ee (diff)
new naming scheme
Diffstat (limited to 'src/client/construction.rs')
-rw-r--r--src/client/construction.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/construction.rs b/src/client/construction.rs
index 8549c09..28a91be 100644
--- a/src/client/construction.rs
+++ b/src/client/construction.rs
@@ -8,7 +8,7 @@ use std::io::{BufRead, BufReader};
use std::net::TcpStream;
use crate::constants;
-use crate::modules::construction::{ConstructionClientData, ConstructionStatus};
+use crate::modules::construction;
pub fn client_construction(mut stream: TcpStream, mut buff_r: BufReader<TcpStream>) {
let stdout = stdout();
@@ -18,7 +18,7 @@ pub fn client_construction(mut stream: TcpStream, mut buff_r: BufReader<TcpStrea
loop {
let mut recv = String::new();
buff_r.read_line(&mut recv).unwrap();
- let data: ConstructionClientData = serde_json::from_str(&recv.replace("\n", "")).unwrap();
+ let data: construction::ClientData = serde_json::from_str(&recv.replace("\n", "")).unwrap();
write!(stdout, "{}", termion::clear::All).unwrap();
@@ -26,7 +26,7 @@ pub fn client_construction(mut stream: TcpStream, mut buff_r: BufReader<TcpStrea
if data.has_enough {
match data.status {
- ConstructionStatus::None => {
+ construction::Status::None => {
write!(stdout, "{}Press c to create a refinery.", clear).unwrap()
}
_ => write!(stdout, "{}Press c to cancel..", clear).unwrap(),