mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2025-01-09 04:41:30 +01:00
56 lines
939 B
TypeScript
56 lines
939 B
TypeScript
export default class SauvegardeStats {
|
|
public static Default: SauvegardeStats = {
|
|
partiesJouees: 0,
|
|
partiesGagnees: 0,
|
|
dernierePartie: null,
|
|
repartition: {
|
|
1: 0,
|
|
2: 0,
|
|
3: 0,
|
|
4: 0,
|
|
5: 0,
|
|
6: 0,
|
|
"-": 0,
|
|
},
|
|
lettresRepartitions: {
|
|
bienPlace: 0,
|
|
malPlace: 0,
|
|
nonTrouve: 0,
|
|
},
|
|
temps: null,
|
|
};
|
|
|
|
dernierePartie: Date | null = null;
|
|
partiesJouees: number = 0;
|
|
partiesGagnees: number = 0;
|
|
repartition: {
|
|
1: number;
|
|
2: number;
|
|
3: number;
|
|
4: number;
|
|
5: number;
|
|
6: number;
|
|
"-": number;
|
|
} = {
|
|
1: 0,
|
|
2: 0,
|
|
3: 0,
|
|
4: 0,
|
|
5: 0,
|
|
6: 0,
|
|
"-": 0,
|
|
};
|
|
lettresRepartitions: {
|
|
bienPlace: number;
|
|
malPlace: number;
|
|
nonTrouve: number;
|
|
} = {
|
|
bienPlace: 0,
|
|
malPlace: 0,
|
|
nonTrouve: 0,
|
|
};
|
|
temps: {
|
|
moyenne: number; // en secondes
|
|
nbParties: number;
|
|
} | null = null;
|
|
}
|