* Initializes the importer with the given data and settings.
(data: IReadable, settings: Settings)
| 15 | * Initializes the importer with the given data and settings. |
| 16 | */ |
| 17 | public init(data: IReadable, settings: Settings): void { |
| 18 | if (data instanceof ThrowingReadable) { |
| 19 | this.data = data; |
| 20 | } else { |
| 21 | this.data = new ThrowingReadable(data); |
| 22 | } |
| 23 | this.settings = settings; |
| 24 | // when beginning reading a new score we reset the IDs. |
| 25 | Score.resetIds(); |
| 26 | } |
| 27 | |
| 28 | public abstract get name(): string; |
| 29 |