porymap/include/core/wildmoninfo.h

36 lines
746 B
C
Raw Normal View History

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 {
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 {
2021-08-13 00:19:21 +01:00
tsl::ordered_map<QString, WildMonInfo> wildMons;
2019-06-13 03:20:28 +01:00
};
struct EncounterField {
QString name;
QVector<int> encounterRates;
2021-08-13 00:19:21 +01:00
tsl::ordered_map<QString, QVector<int>> groups;
};
typedef QVector<EncounterField> EncounterFields;
WildMonInfo getDefaultMonInfo(EncounterField field);
void combineEncounters(WildMonInfo &to, WildMonInfo from);
2019-06-13 03:20:28 +01:00
#endif // GUARD_WILDMONINFO_H