porymap/include/core/wildmoninfo.h
2021-08-12 20:24:46 -04:00

35 lines
765 B
C

#pragma once
#ifndef GUARD_WILDMONINFO_H
#define GUARD_WILDMONINFO_H
#include <QtWidgets>
#include "orderedmap.h"
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 {
tsl::ordered_map<QString, WildMonInfo> wildMons;
};
struct EncounterField {
QString name;
QVector<int> encounterRates;
tsl::ordered_map<QString, QVector<int>> groups;
};
typedef QVector<EncounterField> EncounterFields;
WildMonInfo getDefaultMonInfo(EncounterField field);
WildMonInfo copyMonInfoFromTab(QTableWidget *table, EncounterField monField);
#endif // GUARD_WILDMONINFO_H