You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
489 B
31 lines
489 B
import {Component} from "./Tactic";
|
|
|
|
export type PlayerId = string
|
|
|
|
export enum PlayerTeam {
|
|
Allies = "allies",
|
|
Opponents = "opponents",
|
|
}
|
|
|
|
export interface Player {
|
|
readonly id: PlayerId
|
|
}
|
|
|
|
export interface Player extends Component<"player"> {
|
|
/**
|
|
* the player's team
|
|
* */
|
|
readonly team: PlayerTeam
|
|
|
|
/**
|
|
* player's role
|
|
* */
|
|
readonly role: string
|
|
|
|
/**
|
|
* True if the player has a basketball
|
|
*/
|
|
readonly hasBall: boolean
|
|
}
|
|
|