mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 10:22:35 +00:00
16 lines
332 B
TypeScript
16 lines
332 B
TypeScript
import { NukeType, PlayerID } from "./Game";
|
|
|
|
export interface PlayerStats {
|
|
sentNukes: {
|
|
// target
|
|
[key: PlayerID]: {
|
|
[key in NukeType]: number;
|
|
};
|
|
};
|
|
}
|
|
|
|
export interface Stats {
|
|
increaseNukeCount(sender: PlayerID, target: PlayerID, type: NukeType): void;
|
|
getPlayerStats(player: PlayerID): PlayerStats;
|
|
}
|