mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:21:38 +00:00
Start using multimap correctly for path tracking in RojoTree
This commit is contained in:
parent
8dbc6ab7d3
commit
618185a52d
4 changed files with 57 additions and 42 deletions
|
|
@ -17,18 +17,6 @@ pub struct InstanceMetadata {
|
|||
pub source: Option<InstanceSource>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum InstanceSource {
|
||||
File {
|
||||
path: PathBuf,
|
||||
},
|
||||
ProjectFile {
|
||||
path: PathBuf,
|
||||
name: String,
|
||||
node: ProjectNode,
|
||||
},
|
||||
}
|
||||
|
||||
impl Default for InstanceMetadata {
|
||||
fn default() -> Self {
|
||||
InstanceMetadata {
|
||||
|
|
@ -37,3 +25,9 @@ impl Default for InstanceMetadata {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct InstanceSource {
|
||||
pub path: PathBuf,
|
||||
pub project_node: Option<(String, ProjectNode)>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue