webapp/src/ts/protocol/User.ts
modeco80 125e6a769d reformat typescript code with prettier
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
2024-03-12 01:28:23 -04:00

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;
}
}