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

Method GetOnlineCount

src/plugin/kernel/src/AFCMapModule.cpp:153–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153int AFCMapModule::GetOnlineCount()
154{
155 int online_count = 0;
156 for (auto iter : map_infos_)
157 {
158 auto pMapInfo = iter.second;
159 auto& all_instances = pMapInfo->GetAllInstance();
160 for (auto it : all_instances)
161 {
162 online_count += it.second->player_entities_.size();
163 }
164 }
165
166 return online_count;
167}
168
169int AFCMapModule::GetMaxOnlineCount()
170{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected