This commit is contained in:
2025-02-10 14:43:12 -05:00
parent 3c8e194f00
commit a5f52f7f73
3 changed files with 6 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ namespace CaveGame::Client
this->enabled = enable;
}
void Disable() { Enable(false); }
bool IsEnabled() const { return enabled; }
[[nodiscard]] bool IsEnabled() const { return enabled; }
protected:
bool enabled = false;

View File

@@ -54,6 +54,9 @@ namespace CaveGame::Server
}
}
void StartServerAsynchronous() {}
void StartServerSynchronous() {}
protected:
private:

View File

@@ -308,24 +308,23 @@ public:
}
};
// TODO: Boneyard structure - Rare surface "dungeon"
int main(int argc, char** argv) {
Logs::Server.IncludeLocation(false);
Logs::Client.IncludeLocation(false);
std::cout << "Running Program" << std::endl;
std::thread server(RunServer);
std::thread client(RunClient);
server.detach();
std::this_thread::sleep_for(100ms);
client.detach();
std::string input;
getline(std::cin, input);
while (input != "exit") {