diff options
| author | Arne Dußin | 2021-01-06 21:32:48 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-01-06 21:32:48 +0100 |
| commit | 61d255a420c9d977b46670e7fa9e7735d2acf819 (patch) | |
| tree | d1cf79fec1b643814568544c3691e25564ae874a /src/editor.rs | |
| parent | 9b5762cf3716503819e2cf06f3c335bbfd3b0a3c (diff) | |
| download | graf_karto-61d255a420c9d977b46670e7fa9e7735d2acf819.tar.gz graf_karto-61d255a420c9d977b46670e7fa9e7735d2acf819.zip | |
Add CLI with save feature
Diffstat (limited to 'src/editor.rs')
| -rw-r--r-- | src/editor.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/editor.rs b/src/editor.rs index d541fb6..e652ddc 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -121,20 +121,6 @@ impl Editor { } } - /* - TODO: reintroduce saving and loading - // Handle saving and loading the editor contents to the swap file - if rl.is_key_pressed(KeyboardKey::KEY_S) { - self.map_data - .write_file("swap.ron") - .expect("Unable to write buffer file"); - } else if rl.is_key_pressed(KeyboardKey::KEY_L) { - self.map_data - .load_file("swap.ron") - .expect("Unable to read buffer file"); - } - */ - let mouse_pos_m = transform.point_px_to_m(&rl.get_mouse_position().into()); let snapped_mouse_pos = snap_to_grid(mouse_pos_m, SNAP_SIZE); |
