mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/exe/draw.rs')
| -rw-r--r-- | src/exe/draw.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/exe/draw.rs b/src/exe/draw.rs index 964bcac..c23703f 100644 --- a/src/exe/draw.rs +++ b/src/exe/draw.rs @@ -1,17 +1,13 @@ -use mindus::build_registry; use mindus::Renderable; -use mindus::SchematicSerializer; +use mindus::Schematic; use std::env::Args; use crate::print_err; pub fn main(args: Args) { - let reg = build_registry(); - let mut ss = SchematicSerializer(®); - // process schematics from command line for curr in args { - match ss.deserialize_base64(&curr) { + match Schematic::deserialize_base64(&curr) { Ok(s) => { s.render().save("x.png"); } |