MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / focus_update

Method focus_update

src/World.cpp:197–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void World::focus_update() {
198 if(!clientStillConnecting) {
199 delayedUpdateObjectManager.update(netObjMan);
200 constexpr float SECONDS_TO_SEND_CAMERA_DATA = 0.5f;
201 timeToSendCameraData.update_time_since();
202 if(timeToSendCameraData.get_time_since() > SECONDS_TO_SEND_CAMERA_DATA) {
203 timeToSendCameraData.update_time_point();
204 ownClientData->set_window_size(ownClientData, main.window.size.cast<float>().eval());
205 ownClientData->set_camera_coords(ownClientData, drawData.cam.c);
206 }
207 ownClientData->set_cursor_pos(ownClientData, main.input.mouse.pos);
208 drawProg.update();
209 #ifdef ENABLE_ORDERED_LIST_TEST
210 list_debug_test_update();
211 #endif
212 }
213
214 drawData.cam.update_main(*this);
215
216 rMan.update();
217}
218
219bool World::connection_update() {
220 if(netServer) {

Callers 1

updateMethod · 0.80

Calls 9

update_time_sinceMethod · 0.80
get_time_sinceMethod · 0.80
update_time_pointMethod · 0.80
set_window_sizeMethod · 0.80
set_camera_coordsMethod · 0.80
set_cursor_posMethod · 0.80
update_mainMethod · 0.80
updateMethod · 0.45
evalMethod · 0.45

Tested by

no test coverage detected