| 737 | } |
| 738 | |
| 739 | bool AFCGameNetModule::AddPlayerGateInfo(const AFGUID& nRoleID, const AFGUID& nClientID, const int nGateID) |
| 740 | { |
| 741 | //if (nGateID <= 0) |
| 742 | //{ |
| 743 | // return false; |
| 744 | //} |
| 745 | |
| 746 | //if (nClientID == 0) |
| 747 | //{ |
| 748 | // return false; |
| 749 | //} |
| 750 | |
| 751 | //std::shared_ptr<AFCGameNetModule::GateBaseInfo> pBaseData = mRoleBaseData.find_value(nRoleID); |
| 752 | |
| 753 | //if (nullptr != pBaseData) |
| 754 | //{ |
| 755 | // ARK_LOG_ERROR("player is already exist, cannot enter game again, id = {}", nClientID); |
| 756 | // return false; |
| 757 | //} |
| 758 | |
| 759 | //std::shared_ptr<GateServerInfo> pServerData = mProxyMap.find_value(nGateID); |
| 760 | |
| 761 | //if (nullptr == pServerData) |
| 762 | //{ |
| 763 | // return false; |
| 764 | //} |
| 765 | |
| 766 | //if (!pServerData->xRoleInfo.insert(std::make_pair(nRoleID, pServerData->xServerData.conn_id_)).second) |
| 767 | //{ |
| 768 | // return false; |
| 769 | //} |
| 770 | |
| 771 | //if (!mRoleBaseData.insert(nRoleID, std::make_shared<GateBaseInfo>(nGateID, nClientID)).second) |
| 772 | //{ |
| 773 | // pServerData->xRoleInfo.erase(nRoleID); |
| 774 | // return false; |
| 775 | //} |
| 776 | |
| 777 | return true; |
| 778 | } |
| 779 | |
| 780 | //bool AFCGameNetModule::AddPlayerGate(const AFGUID& actor_id, const int gate_bus) |
| 781 | //{ |
nothing calls this directly
no outgoing calls
no test coverage detected