Rework the ToolState and integrate it into the Editor struct (#48)

* Rework the ToolState and integrate it into the Editor struct

* Add asset manager sources to docs outline
This commit is contained in:
TrueDoctor
2021-03-27 22:02:01 +01:00
committed by GitHub
parent 4035138044
commit 04dc05e575
5 changed files with 91 additions and 42 deletions
+10 -1
View File
@@ -15,6 +15,15 @@ use workspace::Workspace;
// TODO: serialize with serde to save the current editor state
pub struct Editor {
tools: ToolState,
pub tools: ToolState,
workspace: Workspace,
}
impl Editor {
pub fn new() -> Self {
Self {
tools: ToolState::new(),
workspace: Workspace::new(),
}
}
}