add balancing tool target
This commit is contained in:
44
src/balancing/BalancingConfig.h
Normal file
44
src/balancing/BalancingConfig.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <QPoint>
|
||||
|
||||
struct ArenaStationEntry
|
||||
{
|
||||
std::string stationType; // "player_station" or "enemy_station"
|
||||
int level;
|
||||
QPoint position;
|
||||
};
|
||||
|
||||
struct ArenaShipEntry
|
||||
{
|
||||
std::string schematicId;
|
||||
int level;
|
||||
int count;
|
||||
};
|
||||
|
||||
struct ArenaTeamConfig
|
||||
{
|
||||
std::string name;
|
||||
std::vector<ArenaShipEntry> ships;
|
||||
std::vector<ArenaStationEntry> stations;
|
||||
};
|
||||
|
||||
struct ArenaConfig
|
||||
{
|
||||
std::string name;
|
||||
int heightTiles;
|
||||
int playerBufferWidth;
|
||||
int contestZoneWidth;
|
||||
int enemyBufferWidth;
|
||||
ArenaTeamConfig teams[2];
|
||||
};
|
||||
|
||||
struct BalancingConfig
|
||||
{
|
||||
std::vector<ArenaConfig> arenas;
|
||||
};
|
||||
|
||||
BalancingConfig loadBalancingConfig(const std::string& path);
|
||||
Reference in New Issue
Block a user