public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
export abstract class Event<Params = any> {
/**
* Unique event slug
* Must be static, because registering events is done by class
*/
static slug: string = "untitled-event";
params: Params;
constructor(params: Params) {
this.params = params;
}
}
// @todo: current workaround: potentially there is none and that's the way
export class NoParamEvent extends Event<null> {
static override slug: string = "noparam-event";
constructor() {
super(null);
}
}