MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isConnected

Function isConnected

src/OpenLoco/src/Network/Network.cpp:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 bool isConnected()
171 {
172 switch (_mode)
173 {
174 default:
175 case NetworkMode::none:
176 return false;
177 case NetworkMode::server:
178 return true;
179 case NetworkMode::client:
180 return _client->getStatus() == NetworkClientStatus::connected;
181 }
182 }
183
184 uint32_t getServerTick()
185 {

Callers 1

doCommandFunction · 0.85

Calls 1

getStatusMethod · 0.45

Tested by

no test coverage detected