Files
blitzkit/src/types/tanksStats.ts
T

55 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-10-14 11:06:03 -05:00
import { AllStats } from '../core/blitz/getAccountInfo';
2023-05-25 18:20:51 +00:00
export interface IndividualTankStats {
all: AllStats;
last_battle_time: number;
account_id: number;
max_xp: number;
in_garage_updated: number;
max_frags: number;
frags: number | null;
mark_of_mastery: number;
battle_life_time: number;
in_garage: number | null;
tank_id: number;
}
2023-09-23 19:20:29 -05:00
export interface TanksStats {
2024-04-13 18:20:49 -05:00
[accountId: number]: null | IndividualTankStats[];
2023-09-19 15:52:39 +00:00
}
export interface NormalizedTankStats {
[tankId: number]: IndividualTankStats;
}
2023-09-23 21:51:00 +00:00
export const emptyIndividualTankStats: IndividualTankStats = {
all: {
battles: 0,
capture_points: 0,
damage_dealt: 0,
damage_received: 0,
dropped_capture_points: 0,
frags: 0,
frags8p: 0,
hits: 0,
losses: 0,
max_frags: 0,
max_xp: 0,
shots: 0,
spotted: 0,
survived_battles: 0,
xp: 0,
win_and_survived: 0,
wins: 0,
},
last_battle_time: 0,
account_id: 0,
max_xp: 0,
in_garage_updated: 0,
max_frags: 0,
frags: 0,
battle_life_time: 0,
in_garage: 0,
tank_id: 0,
mark_of_mastery: 0,
};