feat(All):Initial

This commit is contained in:
2025-10-04 23:36:07 +08:00
commit 2b4e5d2668
1321 changed files with 415958 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
/**
* @constructor
*/
class Command {
protected id:number;
protected inMemory:boolean;
public updatable:boolean;
protected type:string;
protected name:string;
constructor() {
this.id = - 1;
this.inMemory = false;
this.updatable = false;
this.type = '';
this.name = '';
}
toJSON() {
const output:any = {};
output.type = this.type;
output.id = this.id;
output.name = this.name;
return output;
}
fromJSON( json ) {
this.inMemory = true;
this.type = json.type;
this.id = json.id;
this.name = json.name;
}
}
export { Command };