mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
29 lines
563 B
JavaScript
29 lines
563 B
JavaScript
|
|
/* typehints:start */
|
||
|
|
import { Application } from "../application";
|
||
|
|
/* typehints:end */
|
||
|
|
|
||
|
|
export class AchievementsInterface {
|
||
|
|
constructor(app) {
|
||
|
|
/** @type {Application} */
|
||
|
|
this.app = app;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Initializes the list of achievements
|
||
|
|
* @returns {Promise<void>}
|
||
|
|
*/
|
||
|
|
initialize() {
|
||
|
|
abstract;
|
||
|
|
return Promise.reject();
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Checks if achievements are supported in the current build
|
||
|
|
* @returns {boolean}
|
||
|
|
*/
|
||
|
|
hasAchievements() {
|
||
|
|
abstract;
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
}
|