(index: number)
| 680 | } |
| 681 | |
| 682 | protected updateGear(index: number): void { |
| 683 | if (this._underConstruct || this._gearLocked) return; |
| 684 | |
| 685 | const gear = this._gears[index]; |
| 686 | if (gear?.controller) { |
| 687 | gear.updateState(); |
| 688 | } |
| 689 | } |
| 690 | |
| 691 | public checkGearController(index: number, c: Controller): boolean { |
| 692 | return this._gears[index]?.controller === c; |
no test coverage detected