Created
May 10, 2018 17:54
-
-
Save miles200/f3d07ae935beda12be8129354462371e to your computer and use it in GitHub Desktop.
Globals g_map_names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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