17zuoye Olympus Snippets
usage
- osm: init a SceneMediator
import { EgretMediatorClass } from '17zy_olympus-r-egret/egret/injector/Injector';
import SceneMediator from '17zy_olympus-r/engine/scene/SceneMediator';
@EgretMediatorClass('${filename}', 'skins.${filename}Skin')
export default class ${filename} extends SceneMediator {
}
- opm: init a PanelMediator
import { EgretMediatorClass } from '17zy_olympus-r-egret/egret/injector/Injector';
import PanelMediator from '17zy_olympus-r/engine/panel/PanelMediator';
@EgretMediatorClass('${filename}', 'skins.${filename}Skin')
export default class ${filename} extends PanelMediator {
}
- om: init a Mediator
import { EgretMediatorClass } from '17zy_olympus-r-egret/egret/injector/Injector';
import Mediator from '17zy_olympus-r/engine/mediator/Mediator';
@EgretMediatorClass('${filename}', 'skins.${filename}Skin')
export default class ${filename} extends Mediator {
}
- omd: init a Model
import { ModelClass } from '17zy_olympus-r/engine/injector/Injector';
@ModelClass
export default class ${filenam} {
}
- olsa: init a listAssets
public listAssets(): string[] {
return [];
}
- olsi: init a listInitRequests
public listInitRequests(): RequestData[] {
return [];
}
| |