(mut self, fields: &HashMap<&'gc str, Expr<'gc>>)
| 113 | } |
| 114 | |
| 115 | pub fn parse_instructions(mut self, fields: &HashMap<&'gc str, Expr<'gc>>) -> Self { |
| 116 | if let Some(Expr::Literal { |
| 117 | value: Literal::String(value), |
| 118 | .. |
| 119 | }) = fields.get("instructions") |
| 120 | { |
| 121 | self.instructions = *value; |
| 122 | } |
| 123 | self |
| 124 | } |
| 125 | |
| 126 | pub fn parse_model(mut self, fields: &HashMap<&'gc str, Expr<'gc>>) -> Self { |
| 127 | if let Some(Expr::Literal { |