Mostly just for nicity. I did manually clean up a few things, but other than that, this basically was just importing configs from cvm3/crusttest, adding prettier as a dev dependency, and just ctrl-shift-I on every typescript file part of the codebase
15 lines
351 B
TypeScript
15 lines
351 B
TypeScript
import { Rank } from './Permissions.js';
|
|
|
|
export class User {
|
|
username: string;
|
|
rank: Rank;
|
|
// -1 means not in the turn queue, 0 means the current turn, anything else is the position in the queue
|
|
turn: number;
|
|
|
|
constructor(username: string, rank: Rank = Rank.Unregistered) {
|
|
this.username = username;
|
|
this.rank = rank;
|
|
this.turn = -1;
|
|
}
|
|
}
|