mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
56 lines
1.1 KiB
TypeScript
56 lines
1.1 KiB
TypeScript
import { AllStats } from './accountInfo';
|
|
|
|
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;
|
|
}
|
|
|
|
export interface TanksStats {
|
|
[accountId: number]: IndividualTankStats[];
|
|
}
|
|
|
|
export interface NormalizedTankStats {
|
|
[tankId: number]: IndividualTankStats;
|
|
}
|
|
|
|
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,
|
|
};
|