MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / AddPlayerGateInfo

Method AddPlayerGateInfo

src/server/game/src/AFCGameNetModule.cpp:739–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739bool 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//{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected