mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
28 lines
512 B
JavaScript
28 lines
512 B
JavaScript
var ID = -1;
|
|
|
|
/**
|
|
* 帮助器基类
|
|
* @author tengge / https://github.com/tengge1
|
|
* @param {*} app
|
|
*/
|
|
function BaseHelper(app) {
|
|
this.app = app;
|
|
this.id = `${this.constructor.name}${ID--}`;
|
|
}
|
|
|
|
/**
|
|
* 帮助器开始运行
|
|
* @description 因为start是在`appStarted`事件中运行的,所以无法监听到`appStart`和`appStarted`事件
|
|
*/
|
|
BaseHelper.prototype.start = function () {
|
|
|
|
};
|
|
|
|
/**
|
|
* 帮助器结束运行
|
|
*/
|
|
BaseHelper.prototype.stop = function () {
|
|
|
|
};
|
|
|
|
export default BaseHelper; |