| 179 | } |
| 180 | |
| 181 | Error MultiplayerSynchronizer::set_state(const List<NodePath> &p_properties, Object *p_obj, const Vector<Variant> &p_state) { |
| 182 | ERR_FAIL_NULL_V(p_obj, ERR_INVALID_PARAMETER); |
| 183 | int i = 0; |
| 184 | for (const NodePath &prop : p_properties) { |
| 185 | Object *obj = _get_prop_target(p_obj, prop); |
| 186 | ERR_FAIL_NULL_V(obj, FAILED); |
| 187 | obj->set_indexed(prop.get_subnames(), p_state[i]); |
| 188 | i += 1; |
| 189 | } |
| 190 | return OK; |
| 191 | } |
| 192 | |
| 193 | bool MultiplayerSynchronizer::is_visibility_public() const { |
| 194 | return peer_visibility.has(0); |
nothing calls this directly
no test coverage detected