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.
36 lines
703 B
36 lines
703 B
export type PlayerId = string
|
|
|
|
export enum PlayerTeam {
|
|
Allies = "allies",
|
|
Opponents = "opponents",
|
|
}
|
|
|
|
export interface Player {
|
|
readonly id: PlayerId
|
|
|
|
/**
|
|
* the player's team
|
|
* */
|
|
readonly team: PlayerTeam
|
|
|
|
/**
|
|
* player's role
|
|
* */
|
|
readonly role: string
|
|
|
|
/**
|
|
* Percentage of the player's position to the bottom (0 means top, 1 means bottom, 0.5 means middle)
|
|
*/
|
|
readonly bottomRatio: number
|
|
|
|
/**
|
|
* Percentage of the player's position to the right (0 means left, 1 means right, 0.5 means middle)
|
|
*/
|
|
readonly rightRatio: number
|
|
|
|
/**
|
|
* True if the player has a basketball
|
|
*/
|
|
readonly hasBall: boolean
|
|
}
|