igir
Version:
🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.
37 lines • 847 B
JavaScript
import Game from './game.js';
/**
* A {@link Game} that
*/
export default class SingleValueGame extends Game {
constructor(props) {
super(props);
this.region = props.region;
this.language = props.language;
this.category = props.category;
}
getRegion() {
return this.region;
}
getRegions() {
return this.region ? [this.region] : [];
}
getLanguage() {
return this.language;
}
getLanguages() {
return this.language ? [this.language] : [];
}
getCategory() {
return this.category;
}
getCategories() {
return this.category ? [this.category] : [];
}
withProps(props) {
return new SingleValueGame({
...this,
...props,
});
}
}
//# sourceMappingURL=singleValueGame.js.map