@thingjs/xplugin-core
Version:
xplugin核心组件包,完成插件生命周期配置实现
71 lines (63 loc) • 1.75 kB
TypeScript
import BaseXPlugin from '../BaseXPlugin';
/**
* @extends BaseXPlugin
* @file 系统插件::生命周期定义
* @author 张光 <zhangguang@uino.com>
* @date 2022.07.27
* @copyright uino 2022
* @version Revision
* @description ThingJS-X 系统插件基类
* @description 系统插件是『 ThingJS-X 零代码平台 』的载入全生命周期插件;
* @class CorePlugin
* @constructor
* @method onBeforeInit::系统初始化前载入
* @method onInited::系统初始化完成载入
* @method onBeforeLoad::场景加载前载入
* @method onBeforeLoadEarth::地球场景加载前载入
* @method onEarthLoaded::地球场景加载完成载入
* @method onBeforeLoadCampus::园区场景加载前载入
* @method onCampusLoaded::园区场景加载完成载入
* @method onLoaded::场景加载完成后载入
*/
declare class CorePlugin extends BaseXPlugin{
/**
* @class CorePlugin
* @constructor
* @param name 系统插件名称
* @description 系统插件构造方法
*/
constructor(name: string);
/**
* @description 系统初始化前载入
*/
onBeforeInit(): void;
/**
* @description 系统初始化完成载入
*/
onInited(): void;
/**
* @description 场景加载前载入
*/
onBeforeLoad(): void;
/**
* @description 地球场景加载前载入
*/
onBeforeLoadEarth(): void;
/**
* @description 地球场景加载完成载入
*/
onEarthLoaded(): void;
/**
* @description 园区场景加载前载入
*/
onBeforeLoadCampus(): void;
/**
* @description 园区场景加载完成载入
*/
onCampusLoaded(): void;
/**
* @description 场景加载完成后载入
*/
onLoaded(): void;
}
export default CorePlugin;