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; this->enabled = enable;
} }
void Disable() { Enable(false); } void Disable() { Enable(false); }
bool IsEnabled() const { return enabled; } [[nodiscard]] bool IsEnabled() const { return enabled; }
protected: protected:
bool enabled = false; bool enabled = false;

View File

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

View File

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