use crate::defines::PointerSize; use crate::types::Type; use std::sync::Arc; pub struct ScriptType { fields: Vec, size: PointerSize, is_enum: bool, } pub struct ScriptTypeField { field_type: Arc, } impl ScriptType { pub fn new() -> ScriptType { ScriptType { fields: Vec::new(), size: 0, is_enum: false, } } } impl Type for ScriptType { fn get_size(&self) -> PointerSize { self.size } fn is_enum(&self) -> bool { self.is_enum } }