Yee
This commit is contained in:
@@ -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;
|
||||
|
@@ -54,6 +54,9 @@ namespace CaveGame::Server
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void StartServerAsynchronous() {}
|
||||
void StartServerSynchronous() {}
|
||||
protected:
|
||||
|
||||
private:
|
||||
|
@@ -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") {
|
||||
|
Reference in New Issue
Block a user