refactor(field): wrap all fields in an enum for storage and deref trait

This commit is contained in:
Nova
2022-06-11 16:23:13 -04:00
parent 02ca9467b5
commit 98a84c626f
2 changed files with 40 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ pub struct Node<'a> {
destroyable: bool,
pub spatial: Option<Rc<Spatial>>,
pub field: Option<Rc<Box<dyn Field>>>,
pub field: Option<Rc<Field>>,
}
impl<'a> Node<'a> {