mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Added list of active accounts and rooms to UI. Added room creation logic
This commit is contained in:
@@ -106,6 +106,11 @@ bool CConnection::isMyConnection(const std::shared_ptr<INetworkConnection> & oth
|
||||
return otherConnection != nullptr && networkConnection.lock() == otherConnection;
|
||||
}
|
||||
|
||||
std::shared_ptr<INetworkConnection> CConnection::getConnection()
|
||||
{
|
||||
return networkConnection.lock();
|
||||
}
|
||||
|
||||
void CConnection::disableStackSendingByID()
|
||||
{
|
||||
packReader->sendStackInstanceByIds = false;
|
||||
|
||||
@@ -41,6 +41,7 @@ class DLL_LINKAGE CConnection : boost::noncopyable
|
||||
|
||||
public:
|
||||
bool isMyConnection(const std::shared_ptr<INetworkConnection> & otherConnection) const;
|
||||
std::shared_ptr<INetworkConnection> getConnection();
|
||||
|
||||
std::string uuid;
|
||||
int connectionID;
|
||||
|
||||
Reference in New Issue
Block a user