More refactoring of functionality into seperate files, with stubs for server and client
This commit is contained in:
parent
8835bfb82a
commit
2281bcb6cd
7 changed files with 101 additions and 45 deletions
|
@ -2,7 +2,22 @@
|
|||
#define _TTRTS_FILESYSTEM_H_
|
||||
|
||||
#include <string>
|
||||
#include <chrono>
|
||||
|
||||
int runFromFilesystem( const std::string& directory, const std::string gamefile );
|
||||
#include "game.h"
|
||||
|
||||
#define STRINGIFY(x) _STRINGIFY(x)
|
||||
#define _STRINGIFY(x) #x
|
||||
|
||||
bool FileExists( const std::string& name );
|
||||
|
||||
void WaitForFile( const std::string& name, const std::chrono::milliseconds& time );
|
||||
|
||||
int runFromFilesystem( const std::string& gamefile );
|
||||
|
||||
bool OutputGameStateFile(CTTRTSGame &game, const std::string &gameDir);
|
||||
|
||||
std::string getMapsDir();
|
||||
std::string getGamesDir();
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue