示例#1
0
  public void initPlugin(O2DPlugin plugin) {
    if (plugins.contains(plugin)) return;

    registerPlugin(plugin);

    plugin.setAPI(this);
    plugin.setEngine(Sandbox.getInstance().getEngine());
    plugin.setFacade(Overlap2DFacade.getInstance());
    plugin.setStage(Sandbox.getInstance().getUIStage());

    plugin.initPlugin();
  }
示例#2
0
 public void dropDownActionSets(Set<Entity> selectedEntities, Array<String> actionsSet) {
   for (O2DPlugin plugin : plugins) {
     plugin.onDropDownOpen(selectedEntities, actionsSet);
   }
 }