| 180 | } |
| 181 | |
| 182 | void ClientData::scale_up_step(const NetworkingObjects::NetObjTemporaryPtr<ClientData>& o, World& world) { |
| 183 | o->gridSize++; |
| 184 | world.scale_up(CANVAS_SCALE_UP_STEP); |
| 185 | o.send_update_to_all(RELIABLE_COMMAND_CHANNEL, [](const NetObjTemporaryPtr<ClientData>& o, cereal::PortableBinaryOutputArchive & a) { |
| 186 | a(ClientDataCommand::SET_GRID_SIZE, o->gridSize); |
| 187 | }); |
| 188 | } |
| 189 | |
| 190 | void ClientData::set_display_name(const std::string& newDisplayName) { |
| 191 | displayName = newDisplayName; |
nothing calls this directly
no test coverage detected