| 147 | } |
| 148 | |
| 149 | void ClientData::set_cursor_pos(const NetworkingObjects::NetObjTemporaryPtr<ClientData>& o, Vector2f newPos) { |
| 150 | o->cursorPos = newPos; |
| 151 | o.send_update_to_all(UNRELIABLE_COMMAND_CHANNEL, [](const NetObjTemporaryPtr<ClientData>& o, cereal::PortableBinaryOutputArchive & a) { |
| 152 | a(ClientDataCommand::SET_CURSOR_POS, o->cursorPos); |
| 153 | }); |
| 154 | } |
| 155 | |
| 156 | void ClientData::set_window_size(const NetworkingObjects::NetObjTemporaryPtr<ClientData>& o, Vector2f newWindowSize) { |
| 157 | if(o->windowSize != newWindowSize) { |
no test coverage detected