porymap/include/core/wildmoninfo.h

34 lines
705 B
C
Raw Normal View History

2019-06-13 03:20:28 +01:00
#ifndef GUARD_WILDMONINFO_H
#define GUARD_WILDMONINFO_H
#include <QtWidgets>
struct WildPokemon {
int minLevel = 5;
int maxLevel = 5;
QString species = "SPECIES_NONE";
2019-06-13 03:20:28 +01:00
};
struct WildMonInfo {
bool active = false;
int encounterRate = 0;
2019-06-13 03:20:28 +01:00
QVector<WildPokemon> wildPokemon;
};
struct WildPokemonHeader {
2020-07-29 20:51:04 +01:00
QHash<QString, WildMonInfo> wildMons;
2019-06-13 03:20:28 +01:00
};
struct EncounterField {
QString name;
QVector<int> encounterRates;
QMap<QString, QVector<int>> groups;
};
typedef QVector<EncounterField> EncounterFields;
WildMonInfo getDefaultMonInfo(EncounterField field);
WildMonInfo copyMonInfoFromTab(QTableWidget *table, EncounterField monField);
2019-06-13 03:20:28 +01:00
#endif // GUARD_WILDMONINFO_H