(mut self, fields: &HashMap<&'gc str, Expr<'gc>>)
| 124 | } |
| 125 | |
| 126 | pub fn parse_model(mut self, fields: &HashMap<&'gc str, Expr<'gc>>) -> Self { |
| 127 | if let Some(Expr::Literal { |
| 128 | value: Literal::String(value), |
| 129 | .. |
| 130 | }) = fields.get("model") |
| 131 | { |
| 132 | self.model = *value; |
| 133 | } |
| 134 | self |
| 135 | } |
| 136 | |
| 137 | pub fn parse_tools<F>(mut self, fields: &HashMap<&'gc str, Expr<'gc>>, mut f: F) -> Self |
| 138 | where |