diff options
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 8e025dc..2cf2e41 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -127,20 +127,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 = snapper.snap(mouse_pos_m); |
