Regroup prefixes under a single dict of DictTypes
parent
3a3ee4173a
commit
2f43996b68
|
@ -24,21 +24,9 @@ export default abstract class Shared {
|
||||||
*/
|
*/
|
||||||
static _isLogged = false;
|
static _isLogged = false;
|
||||||
/**
|
/**
|
||||||
* List of possible game engines used for development.
|
* List of platform prefixes and tags.
|
||||||
*/
|
*/
|
||||||
static _engines: DictType = {};
|
static _prefixes: {[s: string]: DictType} = {}
|
||||||
/**
|
|
||||||
* List of possible development statuses that a game can assume.
|
|
||||||
*/
|
|
||||||
static _statuses: DictType = {};
|
|
||||||
/**
|
|
||||||
* List of other prefixes that a game can assume.
|
|
||||||
*/
|
|
||||||
static _others: DictType = {};
|
|
||||||
/**
|
|
||||||
* List of possible tags that a game can assume.
|
|
||||||
*/
|
|
||||||
static _tags: DictType = {};
|
|
||||||
/**
|
/**
|
||||||
* Logger object used to write to both file and console.
|
* Logger object used to write to both file and console.
|
||||||
*/
|
*/
|
||||||
|
@ -57,28 +45,10 @@ export default abstract class Shared {
|
||||||
return this._isLogged;
|
return this._isLogged;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* List of possible game engines used for development.
|
* List of platform prefixes and tags.
|
||||||
*/
|
*/
|
||||||
static get engines(): DictType {
|
static get prefixes(): { [s: string]: DictType } {
|
||||||
return this._engines;
|
return this._prefixes;
|
||||||
}
|
|
||||||
/**
|
|
||||||
* List of possible development states that a game can assume.
|
|
||||||
*/
|
|
||||||
static get statuses(): DictType {
|
|
||||||
return this._statuses;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* List of other prefixes that a game can assume.
|
|
||||||
*/
|
|
||||||
static get others(): DictType {
|
|
||||||
return this._others;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* List of possible tags that a game can assume.
|
|
||||||
*/
|
|
||||||
static get tags(): DictType {
|
|
||||||
return this._tags;
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Logger object used to write to both file and console.
|
* Logger object used to write to both file and console.
|
||||||
|
@ -101,20 +71,8 @@ export default abstract class Shared {
|
||||||
//#endregion Getters
|
//#endregion Getters
|
||||||
|
|
||||||
//#region Setters
|
//#region Setters
|
||||||
static setEngines(val: DictType): void {
|
static setPrefixPair(key: string, val: DictType): void {
|
||||||
this._engines = val;
|
this._prefixes[key] = val;
|
||||||
}
|
|
||||||
|
|
||||||
static setStatuses(val: DictType): void {
|
|
||||||
this._statuses = val;
|
|
||||||
}
|
|
||||||
|
|
||||||
static setTags(val: DictType): void {
|
|
||||||
this._tags = val;
|
|
||||||
}
|
|
||||||
|
|
||||||
static setOthers(val: DictType): void {
|
|
||||||
this._others = val;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static setIsLogged(val: boolean): void {
|
static setIsLogged(val: boolean): void {
|
||||||
|
|
Loading…
Reference in New Issue