prettify, sorry for the big ass commit

This commit is contained in:
Olivier Gagnon
2021-09-04 19:09:30 -04:00
parent 3d7cdb4ef9
commit a18bdd6afc
554 changed files with 91615 additions and 66138 deletions
+25 -24
View File
@@ -1,34 +1,35 @@
import { Reviver,
Generic_toJSON,
Generic_fromJSON } from "../../utils/JSONReviver";
import {
Reviver,
Generic_toJSON,
Generic_fromJSON,
} from "../../utils/JSONReviver";
export class Message {
// Name of Message file
filename = "";
// Name of Message file
filename = "";
// The text contains in the Message
msg = "";
// The text contains in the Message
msg = "";
// Flag indicating whether this Message has been received by the player
recvd = false;
// Flag indicating whether this Message has been received by the player
recvd = false;
constructor(filename = "", msg = "") {
this.filename = filename;
this.msg = msg;
this.recvd = false;
}
constructor(filename="", msg="") {
this.filename = filename;
this.msg = msg;
this.recvd = false;
}
// Serialize the current object to a JSON save state
toJSON(): any {
return Generic_toJSON("Message", this);
}
// Serialize the current object to a JSON save state
toJSON(): any {
return Generic_toJSON("Message", this);
}
// Initializes a Message Object from a JSON save state
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
static fromJSON(value: any): Message {
return Generic_fromJSON(Message, value.data);
}
// Initializes a Message Object from a JSON save state
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
static fromJSON(value: any): Message {
return Generic_fromJSON(Message, value.data);
}
}
Reviver.constructors.Message = Message;