porymap/include/core/wildmoninfo.h
2020-08-26 20:03:47 -04:00

33 lines
705 B
C

#ifndef GUARD_WILDMONINFO_H
#define GUARD_WILDMONINFO_H
#include <QtWidgets>
struct WildPokemon {
int minLevel = 5;
int maxLevel = 5;
QString species = "SPECIES_NONE";
};
struct WildMonInfo {
bool active = false;
int encounterRate = 0;
QVector<WildPokemon> wildPokemon;
};
struct WildPokemonHeader {
QHash<QString, WildMonInfo> wildMons;
};
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);
#endif // GUARD_WILDMONINFO_H