forked from No-needto-recall/cmdGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig_data.h
More file actions
100 lines (83 loc) · 1.51 KB
/
Copy pathConfig_data.h
File metadata and controls
100 lines (83 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#pragma once
#include <string>
#include <vector>
#include "../lib/nlohmann/json.hpp"
using std::string;
using std::vector;
struct PlayerData
{
string name;
string levelID;
string mapID;
int x;
int y;
int lineOfSight;
};
struct ScreenData {
int width;
int height;
};
struct LevelData
{
string levelid;
};
struct MapData {
string mapid;
int maxRows;
int maxColumns;
};
struct TypeData
{
string name;
char icon;
};
struct PortalData {
string fromLevel;
string fromMap;
int fromX;
int fromY;
string toLevel;
string toMap;
int toX;
int toY;
};
struct PokemonSkillData {
string name;
int category;
int power;
int accuracy;
int priority;
int maxPP;
};
struct PokemonSpeciesData {
string name;
int baseHP;
int baseAttack;
int baseDefence;
int baseSpecialAttack;
int baseSpecialDefence;
int baseSpeed;
int HpPoint;
int AttackPoint;
int DefencePoint;
int SpecialAttackPoint;
int SpecialDefencePoint;
int SpeedPoint;
int basicEmpirical;
vector<string> learnableSkills;
};
struct ConfigData {
PlayerData player;
struct Game {
ScreenData screen;
vector<LevelData> levels;
vector<MapData> maps;
vector<PortalData> portals;
}game;
struct Object {
vector<TypeData> types;
}object;
vector<PokemonSkillData> pokemonSkills;
vector<PokemonSpeciesData> pokemonSpecies;
void from_json(const nlohmann::json& j);
};