Add input handling
This commit is contained in:
parent
29c6b14440
commit
d5be727040
36 changed files with 417 additions and 113 deletions
9
frontend/src/scripts/transport/serializable.ts
Normal file
9
frontend/src/scripts/transport/serializable.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export class Typed {
|
||||
public get type(): string {
|
||||
return this.constructor.name;
|
||||
}
|
||||
|
||||
public toJSON() {
|
||||
return { type: this.type, ...this };
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue