2020-09-13 23:37:55 +01:00
|
|
|
#pragma once
|
2019-06-13 03:20:28 +01:00
|
|
|
#ifndef GUARD_WILDMONINFO_H
|
|
|
|
#define GUARD_WILDMONINFO_H
|
|
|
|
|
|
|
|
#include <QtWidgets>
|
2021-08-13 00:19:21 +01:00
|
|
|
#include "orderedmap.h"
|
2019-06-13 03:20:28 +01:00
|
|
|
|
|
|
|
struct WildPokemon {
|
2019-09-22 01:48:53 +01:00
|
|
|
int minLevel = 5;
|
|
|
|
int maxLevel = 5;
|
|
|
|
QString species = "SPECIES_NONE";
|
2019-06-13 03:20:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct WildMonInfo {
|
|
|
|
bool active = false;
|
2019-06-26 20:15:50 +01:00
|
|
|
int encounterRate = 0;
|
2019-06-13 03:20:28 +01:00
|
|
|
QVector<WildPokemon> wildPokemon;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WildPokemonHeader {
|
2021-08-13 00:19:21 +01:00
|
|
|
tsl::ordered_map<QString, WildMonInfo> wildMons;
|
2019-06-13 03:20:28 +01:00
|
|
|
};
|
|
|
|
|
2019-09-30 00:07:34 +01:00
|
|
|
struct EncounterField {
|
|
|
|
QString name;
|
|
|
|
QVector<int> encounterRates;
|
2021-08-13 00:19:21 +01:00
|
|
|
tsl::ordered_map<QString, QVector<int>> groups;
|
2019-09-30 00:07:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef QVector<EncounterField> EncounterFields;
|
2019-06-25 18:52:00 +01:00
|
|
|
|
2019-09-30 00:07:34 +01:00
|
|
|
WildMonInfo getDefaultMonInfo(EncounterField field);
|
2023-01-17 04:23:41 +00:00
|
|
|
void combineEncounters(WildMonInfo &to, WildMonInfo from);
|
2019-06-13 03:20:28 +01:00
|
|
|
|
|
|
|
#endif // GUARD_WILDMONINFO_H
|