Передача ресурсов клиенту
This commit is contained in:
@@ -2215,7 +2215,8 @@ void Vulkan::gui_MainMenu() {
|
||||
std::unique_ptr<Net::AsyncSocket> sock = std::move(ConnectionProgress.Socket);
|
||||
Game.RSession = std::make_unique<VulkanRenderSession>();
|
||||
*this << Game.RSession;
|
||||
Game.Session = std::make_unique<ServerSession>(IOC, std::move(sock), Game.RSession.get());
|
||||
Game.Session = ServerSession::Create(IOC, std::move(sock));
|
||||
Game.Session->setRenderSession(Game.RSession.get());
|
||||
Game.RSession->setServerSession(Game.Session.get());
|
||||
Game.ImGuiInterfaces.push_back(&Vulkan::gui_ConnectedToServer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user