use crate::*; #[derive(Reflect)] pub struct Array where T: Reflect, { inner: Vec, } impl Default for Array where T: Reflect, { fn default() -> Self { Self { inner: Vec::new() } } } impl Array where T: Reflect, { #[function] pub fn New() -> Self { Self::default() } #[function] pub fn Get(&mut self, index: usize) -> Option<&T> { self.inner.get(index) } #[function] pub fn GetMut(&mut self, index: usize) -> Option<&mut T> { self.inner.get_mut(index) } }