Implement picking game dir

This commit is contained in:
2025-01-11 23:28:25 +01:00
parent 156c5770e8
commit e0f3361efe
8 changed files with 147 additions and 20 deletions

View File

@@ -78,6 +78,20 @@ export namespace main {
return a;
}
}
export class BoolResponse {
data: boolean;
error?: string;
static createFrom(source: any = {}) {
return new BoolResponse(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.data = source["data"];
this.error = source["error"];
}
}
export class StringResponse {
data: string;
error?: string;