Use net objects in resource manager
This commit is contained in:
parent
9e049f0201
commit
9187518290
14 changed files with 113 additions and 179 deletions
|
|
@ -268,7 +268,7 @@ void NetServer::add_disconnect_callback(const NetServerDisconnectCallback& callb
|
|||
disconnectCallback = callback;
|
||||
}
|
||||
|
||||
const std::vector<std::shared_ptr<NetServer::ClientData>> NetServer::get_client_list() const {
|
||||
const std::vector<std::shared_ptr<NetServer::ClientData>>& NetServer::get_client_list() const {
|
||||
return clients;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class NetServer : public std::enable_shared_from_this<NetServer> {
|
|||
void add_recv_callback(MessageCommandType commandID, const NetServerRecvCallback& callback);
|
||||
void add_disconnect_callback(const NetServerDisconnectCallback& callback);
|
||||
|
||||
const std::vector<std::shared_ptr<ClientData>> get_client_list() const;
|
||||
const std::vector<std::shared_ptr<ClientData>>& get_client_list() const;
|
||||
|
||||
private:
|
||||
void parse_received_messages();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue