qmlfrontend/game_config.h
author Wuzzy <Wuzzy2@mail.ru>
Fri, 18 Jan 2019 00:36:48 +0100
changeset 14652 92ebe33c5eb6
parent 14294 645e4591361f
permissions -rw-r--r--
VideoRec: Hide libaom-av1 codec in frontend, it's experimental

#ifndef GAMECONFIG_H
#define GAMECONFIG_H

#include <QList>
#include <QVector>

#include "team.h"

class GameConfig {
 public:
  explicit GameConfig();

  const char** argv() const;
  int argc() const;
  const QList<QByteArray> config() const;

  void clear();
  void cmdSeed(const QByteArray& seed);
  void cmdTheme(const QByteArray& theme);
  void cmdMapgen(int mapgen);
  void cmdTeam(const Team& team);

 private:
  mutable QVector<const char*> m_argv;
  QList<QByteArray> m_arguments;
  QList<QByteArray> m_cfg;
  QList<Team> m_teams;

  void cfgAppend(const QByteArray& cmd);
};

#endif  // GAMECONFIG_H