Skip to content

Instantly share code, notes, and snippets.

@miles200
Created May 10, 2018 17:54
Show Gist options
  • Save miles200/f3d07ae935beda12be8129354462371e to your computer and use it in GitHub Desktop.
Save miles200/f3d07ae935beda12be8129354462371e to your computer and use it in GitHub Desktop.
Globals g_map_names
// Globals.h
#ifndef GLOBALS_H
#define GLOBALS_H
#include <QtCore> // Same error with either of these 2 includes
#include <QStringList>
class Globals
{
public:
Globals();
extern QStringList g_map_names; // List of all known maps
};
#endif // GLOBALS_H
// Globals.cpp
#include "Globals.h"
#include <QtCore>
Globals::Globals()
{
// List of all known maps
QStringList g_map_names = {
"City_00_01",
"City_01_01",
"City_23_01"
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment