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