(props)
| 15 | |
| 16 | class Player extends BaseComponent { |
| 17 | constructor(props) { |
| 18 | super(props); |
| 19 | |
| 20 | this.state = { |
| 21 | speed: 2, |
| 22 | playing: false, |
| 23 | building: false, |
| 24 | }; |
| 25 | |
| 26 | this.tracerApiSource = null; |
| 27 | |
| 28 | this.reset(); |
| 29 | } |
| 30 | |
| 31 | componentDidMount() { |
| 32 | const { editingFile, shouldBuild } = this.props.current; |