2024-01-11 12:26:32 -05:00
|
|
|
// public (.*?): integer;
|
|
|
|
// this.$1 = source?.$1 || 0;
|
|
|
|
|
|
|
|
export class GameStats {
|
|
|
|
public playTime: integer;
|
|
|
|
public battles: integer;
|
|
|
|
public classicSessionsPlayed: integer;
|
|
|
|
public sessionsWon: integer;
|
2024-05-07 00:44:41 -04:00
|
|
|
public ribbonsOwned: integer;
|
2024-03-15 21:59:34 -04:00
|
|
|
public dailyRunSessionsPlayed: integer;
|
|
|
|
public dailyRunSessionsWon: integer;
|
2024-01-11 12:26:32 -05:00
|
|
|
public endlessSessionsPlayed: integer;
|
|
|
|
public highestEndlessWave: integer;
|
|
|
|
public highestLevel: integer;
|
|
|
|
public highestMoney: integer;
|
2024-02-18 22:21:57 -05:00
|
|
|
public highestDamage: integer;
|
|
|
|
public highestHeal: integer;
|
2024-01-11 12:26:32 -05:00
|
|
|
public pokemonSeen: integer;
|
|
|
|
public pokemonDefeated: integer;
|
|
|
|
public pokemonCaught: integer;
|
|
|
|
public pokemonHatched: integer;
|
2024-05-05 17:11:29 -04:00
|
|
|
public subLegendaryPokemonSeen: integer;
|
|
|
|
public subLegendaryPokemonCaught: integer;
|
|
|
|
public subLegendaryPokemonHatched: integer;
|
2024-01-11 12:26:32 -05:00
|
|
|
public legendaryPokemonSeen: integer;
|
|
|
|
public legendaryPokemonCaught: integer;
|
|
|
|
public legendaryPokemonHatched: integer;
|
|
|
|
public mythicalPokemonSeen: integer;
|
|
|
|
public mythicalPokemonCaught: integer;
|
|
|
|
public mythicalPokemonHatched: integer;
|
|
|
|
public shinyPokemonSeen: integer;
|
|
|
|
public shinyPokemonCaught: integer;
|
|
|
|
public shinyPokemonHatched: integer;
|
|
|
|
public pokemonFused: integer;
|
|
|
|
public trainersDefeated: integer;
|
|
|
|
public eggsPulled: integer;
|
|
|
|
public rareEggsPulled: integer;
|
|
|
|
public epicEggsPulled: integer;
|
|
|
|
public legendaryEggsPulled: integer;
|
|
|
|
public manaphyEggsPulled: integer;
|
|
|
|
|
|
|
|
constructor(source?: any) {
|
|
|
|
this.playTime = source?.playTime || 0;
|
|
|
|
this.battles = source?.battles || 0;
|
|
|
|
this.classicSessionsPlayed = source?.classicSessionsPlayed || 0;
|
|
|
|
this.sessionsWon = source?.sessionsWon || 0;
|
2024-05-07 00:44:41 -04:00
|
|
|
this.ribbonsOwned = source?.ribbonsOwned || 0;
|
2024-03-15 21:59:34 -04:00
|
|
|
this.dailyRunSessionsPlayed = source?.dailyRunSessionsPlayed || 0;
|
|
|
|
this.dailyRunSessionsWon = source?.dailyRunSessionsWon || 0;
|
2024-01-11 12:26:32 -05:00
|
|
|
this.endlessSessionsPlayed = source?.endlessSessionsPlayed || 0;
|
|
|
|
this.highestEndlessWave = source?.highestEndlessWave || 0;
|
|
|
|
this.highestLevel = source?.highestLevel || 0;
|
|
|
|
this.highestMoney = source?.highestMoney || 0;
|
2024-02-18 22:21:57 -05:00
|
|
|
this.highestDamage = source?.highestDamage || 0;
|
|
|
|
this.highestHeal = source?.highestHeal || 0;
|
2024-01-11 12:26:32 -05:00
|
|
|
this.pokemonSeen = source?.pokemonSeen || 0;
|
|
|
|
this.pokemonDefeated = source?.pokemonDefeated || 0;
|
|
|
|
this.pokemonCaught = source?.pokemonCaught || 0;
|
|
|
|
this.pokemonHatched = source?.pokemonHatched || 0;
|
2024-05-05 17:11:29 -04:00
|
|
|
// Currently handled by migration
|
|
|
|
this.subLegendaryPokemonSeen = source?.subLegendaryPokemonSeen;
|
|
|
|
this.subLegendaryPokemonCaught = source?.subLegendaryPokemonCaught;
|
|
|
|
this.subLegendaryPokemonHatched = source?.subLegendaryPokemonHatched;
|
2024-01-11 12:26:32 -05:00
|
|
|
this.legendaryPokemonSeen = source?.legendaryPokemonSeen || 0;
|
|
|
|
this.legendaryPokemonCaught = source?.legendaryPokemonCaught || 0;
|
|
|
|
this.legendaryPokemonHatched = source?.legendaryPokemonHatched || 0;
|
|
|
|
this.mythicalPokemonSeen = source?.mythicalPokemonSeen || 0;
|
|
|
|
this.mythicalPokemonCaught = source?.mythicalPokemonCaught || 0;
|
|
|
|
this.mythicalPokemonHatched = source?.mythicalPokemonCaught || 0;
|
|
|
|
this.shinyPokemonSeen = source?.shinyPokemonSeen || 0;
|
|
|
|
this.shinyPokemonCaught = source?.shinyPokemonCaught || 0;
|
|
|
|
this.shinyPokemonHatched = source?.shinyPokemonHatched || 0;
|
|
|
|
this.pokemonFused = source?.pokemonFused || 0;
|
|
|
|
this.trainersDefeated = source?.trainersDefeated || 0;
|
|
|
|
this.eggsPulled = source?.eggsPulled || 0;
|
|
|
|
this.rareEggsPulled = source?.rareEggsPulled || 0;
|
|
|
|
this.epicEggsPulled = source?.epicEggsPulled || 0;
|
|
|
|
this.legendaryEggsPulled = source?.legendaryEggsPulled || 0;
|
|
|
|
this.manaphyEggsPulled = source?.manaphyEggsPulled || 0;
|
|
|
|
}
|
|
|
|
}
|