extract format functions out into formatters files
This commit is contained in:
parent
3342300324
commit
71aab498dc
14 changed files with 246 additions and 224 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include "formatters.h"
|
||||
|
||||
void AddUnitToGame( player_t player, char vis, uvector2 vec, CTTRTSGame& game )
|
||||
{
|
||||
|
@ -15,7 +16,7 @@ void OutputGame( CTTRTSGame&& game )
|
|||
{
|
||||
std::ofstream output;
|
||||
output.open (game.GetName() + ".txt");
|
||||
output << game.GetStateAsString();
|
||||
output << GetStringFromGame(game);
|
||||
output.close();
|
||||
|
||||
__forceResetCUnitID();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue