Huge refactor, pulling server and local out into their own binaries
This commit is contained in:
parent
1b2010faba
commit
0ead12c7dd
16 changed files with 165 additions and 247 deletions
29
source/system/filesystem.h
Normal file
29
source/system/filesystem.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#ifndef _TTRTS_FILESYSTEM_H_
|
||||
#define _TTRTS_FILESYSTEM_H_
|
||||
|
||||
#include <string>
|
||||
#include <chrono>
|
||||
|
||||
#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 );
|
||||
|
||||
bool OutputGameStateFile(CTTRTSGame &game);
|
||||
|
||||
std::string GetOrdersFromPlayerFile(const CTTRTSGame &game, player_t &player);
|
||||
|
||||
CTTRTSGame GetGameFromFile( const std::string& file );
|
||||
|
||||
std::string getMapsDir();
|
||||
std::string getGamesDir();
|
||||
|
||||
int runFromFilesystem(int argc, char* argv[]);
|
||||
|
||||
int CreateAndCleanGameDir(const std::string& gameName);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue