Skip to content

jackPanyj/olympus-snippets

Repository files navigation

17zuoye Olympus Snippets

usage

  1. 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 {
    
}
  1. 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 {
    
}
  1. 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 {
    
}
  1. omd: init a Model
import { ModelClass } from '17zy_olympus-r/engine/injector/Injector';

@ModelClass
export default class ${filenam} {
    
}
  1. olsa: init a listAssets
public listAssets(): string[] {
    return [];
}
  1. olsi: init a listInitRequests
public listInitRequests(): RequestData[] {
    return [];
}

Releases

No releases published

Packages

No packages published