mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Stash commit to open a new branch.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import { OlympusApp } from "../olympusapp";
|
||||
|
||||
export interface PluginInterface {
|
||||
}
|
||||
const templateParser = require( "ejs" );
|
||||
|
||||
export abstract class Plugin {
|
||||
|
||||
#olympusApp!:OlympusApp;
|
||||
protected name = "";
|
||||
#templateParser:any;
|
||||
|
||||
constructor( olympusApp:OlympusApp, pluginName:string ) {
|
||||
|
||||
@@ -16,8 +15,9 @@ export abstract class Plugin {
|
||||
throw new Error( `Plugin names must match regex: ${regex}` );
|
||||
}
|
||||
|
||||
this.name = pluginName;
|
||||
this.#olympusApp = olympusApp;
|
||||
this.name = pluginName;
|
||||
this.#olympusApp = olympusApp;
|
||||
this.#templateParser = templateParser;
|
||||
|
||||
}
|
||||
|
||||
@@ -29,4 +29,8 @@ export abstract class Plugin {
|
||||
return this.#olympusApp;
|
||||
}
|
||||
|
||||
getTemplateParser() {
|
||||
return this.#templateParser;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user