hydrate_model/editor/
path_node.rs

1use crate::SchemaLinker;
2use uuid::Uuid;
3
4pub struct PathNode {
5    // Name and parent are part of asset info, so we don't have explicit fields
6}
7
8impl PathNode {
9    pub fn register_schema(linker: &mut SchemaLinker) {
10        linker
11            .register_record_type(
12                Self::schema_name(),
13                Uuid::parse_str("ec66c632-fed2-40fc-b27a-c0c138ad31bc").unwrap(),
14                |_| {},
15            )
16            .unwrap();
17    }
18
19    pub fn schema_name() -> &'static str {
20        "PathNode"
21    }
22}
23
24pub struct PathNodeRoot {
25    // Name and parent are part of asset info, so we don't have explicit fields
26}
27
28impl PathNodeRoot {
29    pub fn register_schema(linker: &mut SchemaLinker) {
30        linker
31            .register_record_type(
32                Self::schema_name(),
33                Uuid::parse_str("da09e646-89a5-41d3-8029-048ed1ad1b3b").unwrap(),
34                |_| {},
35            )
36            .unwrap();
37    }
38
39    pub fn schema_name() -> &'static str {
40        "PathNodeRoot"
41    }
42}