Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/multiplayer/editor/replication_editor.cpp
10278 views
1
/**************************************************************************/
2
/* replication_editor.cpp */
3
/**************************************************************************/
4
/* This file is part of: */
5
/* GODOT ENGINE */
6
/* https://godotengine.org */
7
/**************************************************************************/
8
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
9
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
10
/* */
11
/* Permission is hereby granted, free of charge, to any person obtaining */
12
/* a copy of this software and associated documentation files (the */
13
/* "Software"), to deal in the Software without restriction, including */
14
/* without limitation the rights to use, copy, modify, merge, publish, */
15
/* distribute, sublicense, and/or sell copies of the Software, and to */
16
/* permit persons to whom the Software is furnished to do so, subject to */
17
/* the following conditions: */
18
/* */
19
/* The above copyright notice and this permission notice shall be */
20
/* included in all copies or substantial portions of the Software. */
21
/* */
22
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
23
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
24
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
25
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
26
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
27
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
28
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
29
/**************************************************************************/
30
31
#include "replication_editor.h"
32
33
#include "../multiplayer_synchronizer.h"
34
35
#include "editor/editor_node.h"
36
#include "editor/editor_string_names.h"
37
#include "editor/editor_undo_redo_manager.h"
38
#include "editor/inspector/property_selector.h"
39
#include "editor/scene/scene_tree_editor.h"
40
#include "editor/settings/editor_settings.h"
41
#include "editor/themes/editor_scale.h"
42
#include "editor/themes/editor_theme_manager.h"
43
#include "scene/gui/dialogs.h"
44
#include "scene/gui/line_edit.h"
45
#include "scene/gui/separator.h"
46
#include "scene/gui/tree.h"
47
48
void ReplicationEditor::_pick_node_filter_text_changed(const String &p_newtext) {
49
TreeItem *root_item = pick_node->get_scene_tree()->get_scene_tree()->get_root();
50
51
Vector<Node *> select_candidates;
52
Node *to_select = nullptr;
53
54
String filter = pick_node->get_filter_line_edit()->get_text();
55
56
_pick_node_select_recursive(root_item, filter, select_candidates);
57
58
if (!select_candidates.is_empty()) {
59
for (int i = 0; i < select_candidates.size(); ++i) {
60
Node *candidate = select_candidates[i];
61
62
if (((String)candidate->get_name()).to_lower().begins_with(filter.to_lower())) {
63
to_select = candidate;
64
break;
65
}
66
}
67
68
if (!to_select) {
69
to_select = select_candidates[0];
70
}
71
}
72
73
pick_node->get_scene_tree()->set_selected(to_select);
74
}
75
76
void ReplicationEditor::_pick_node_select_recursive(TreeItem *p_item, const String &p_filter, Vector<Node *> &p_select_candidates) {
77
if (!p_item) {
78
return;
79
}
80
81
NodePath np = p_item->get_metadata(0);
82
Node *node = get_node(np);
83
84
if (!p_filter.is_empty() && ((String)node->get_name()).containsn(p_filter)) {
85
p_select_candidates.push_back(node);
86
}
87
88
TreeItem *c = p_item->get_first_child();
89
90
while (c) {
91
_pick_node_select_recursive(c, p_filter, p_select_candidates);
92
c = c->get_next();
93
}
94
}
95
96
void ReplicationEditor::_pick_node_selected(NodePath p_path) {
97
Node *root = current->get_node(current->get_root_path());
98
ERR_FAIL_NULL(root);
99
Node *node = get_node(p_path);
100
ERR_FAIL_NULL(node);
101
NodePath path_to = root->get_path_to(node);
102
adding_node_path = path_to;
103
prop_selector->select_property_from_instance(node);
104
}
105
106
void ReplicationEditor::_pick_new_property() {
107
if (current == nullptr) {
108
EditorNode::get_singleton()->show_warning(TTR("Select a replicator node in order to pick a property to add to it."));
109
return;
110
}
111
Node *root = current->get_node(current->get_root_path());
112
if (!root) {
113
EditorNode::get_singleton()->show_warning(TTR("Not possible to add a new property to synchronize without a root."));
114
return;
115
}
116
pick_node->popup_scenetree_dialog(nullptr, current);
117
pick_node->get_filter_line_edit()->clear();
118
pick_node->get_filter_line_edit()->grab_focus();
119
}
120
121
void ReplicationEditor::_add_sync_property(String p_path) {
122
config = current->get_replication_config();
123
124
if (config.is_valid() && config->has_property(p_path)) {
125
EditorNode::get_singleton()->show_warning(TTR("Property is already being synchronized."));
126
return;
127
}
128
129
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
130
undo_redo->create_action(TTR("Add property to synchronizer"));
131
132
if (config.is_null()) {
133
config.instantiate();
134
current->set_replication_config(config);
135
undo_redo->add_do_method(current, "set_replication_config", config);
136
undo_redo->add_undo_method(current, "set_replication_config", Ref<SceneReplicationConfig>());
137
_update_config();
138
}
139
140
undo_redo->add_do_method(config.ptr(), "add_property", p_path);
141
undo_redo->add_undo_method(config.ptr(), "remove_property", p_path);
142
undo_redo->add_do_method(this, "_update_config");
143
undo_redo->add_undo_method(this, "_update_config");
144
undo_redo->commit_action();
145
}
146
147
void ReplicationEditor::_pick_node_property_selected(String p_name) {
148
String adding_prop_path = String(adding_node_path) + ":" + p_name;
149
150
_add_sync_property(adding_prop_path);
151
}
152
153
/// ReplicationEditor
154
ReplicationEditor::ReplicationEditor() {
155
set_v_size_flags(SIZE_EXPAND_FILL);
156
set_custom_minimum_size(Size2(0, 200) * EDSCALE);
157
158
delete_dialog = memnew(ConfirmationDialog);
159
delete_dialog->connect("canceled", callable_mp(this, &ReplicationEditor::_dialog_closed).bind(false));
160
delete_dialog->connect(SceneStringName(confirmed), callable_mp(this, &ReplicationEditor::_dialog_closed).bind(true));
161
add_child(delete_dialog);
162
163
VBoxContainer *vb = memnew(VBoxContainer);
164
vb->set_v_size_flags(SIZE_EXPAND_FILL);
165
add_child(vb);
166
167
pick_node = memnew(SceneTreeDialog);
168
add_child(pick_node);
169
pick_node->set_title(TTR("Pick a node to synchronize:"));
170
pick_node->connect("selected", callable_mp(this, &ReplicationEditor::_pick_node_selected));
171
pick_node->get_filter_line_edit()->connect(SceneStringName(text_changed), callable_mp(this, &ReplicationEditor::_pick_node_filter_text_changed));
172
173
prop_selector = memnew(PropertySelector);
174
add_child(prop_selector);
175
// Filter out properties that cannot be synchronized.
176
// * RIDs do not match across network.
177
// * Objects are too large for replication.
178
Vector<Variant::Type> types = {
179
Variant::BOOL,
180
Variant::INT,
181
Variant::FLOAT,
182
Variant::STRING,
183
184
Variant::VECTOR2,
185
Variant::VECTOR2I,
186
Variant::RECT2,
187
Variant::RECT2I,
188
Variant::VECTOR3,
189
Variant::VECTOR3I,
190
Variant::TRANSFORM2D,
191
Variant::VECTOR4,
192
Variant::VECTOR4I,
193
Variant::PLANE,
194
Variant::QUATERNION,
195
Variant::AABB,
196
Variant::BASIS,
197
Variant::TRANSFORM3D,
198
Variant::PROJECTION,
199
200
Variant::COLOR,
201
Variant::STRING_NAME,
202
Variant::NODE_PATH,
203
// Variant::RID,
204
// Variant::OBJECT,
205
Variant::SIGNAL,
206
Variant::DICTIONARY,
207
Variant::ARRAY,
208
209
Variant::PACKED_BYTE_ARRAY,
210
Variant::PACKED_INT32_ARRAY,
211
Variant::PACKED_INT64_ARRAY,
212
Variant::PACKED_FLOAT32_ARRAY,
213
Variant::PACKED_FLOAT64_ARRAY,
214
Variant::PACKED_STRING_ARRAY,
215
Variant::PACKED_VECTOR2_ARRAY,
216
Variant::PACKED_VECTOR3_ARRAY,
217
Variant::PACKED_COLOR_ARRAY,
218
Variant::PACKED_VECTOR4_ARRAY,
219
};
220
prop_selector->set_type_filter(types);
221
prop_selector->connect("selected", callable_mp(this, &ReplicationEditor::_pick_node_property_selected));
222
223
HBoxContainer *hb = memnew(HBoxContainer);
224
vb->add_child(hb);
225
226
add_pick_button = memnew(Button);
227
add_pick_button->connect(SceneStringName(pressed), callable_mp(this, &ReplicationEditor::_pick_new_property));
228
add_pick_button->set_text(TTR("Add property to sync..."));
229
hb->add_child(add_pick_button);
230
231
VSeparator *vs = memnew(VSeparator);
232
vs->set_custom_minimum_size(Size2(30 * EDSCALE, 0));
233
hb->add_child(vs);
234
hb->add_child(memnew(Label(TTR("Path:"))));
235
236
np_line_edit = memnew(LineEdit);
237
np_line_edit->set_placeholder(":property");
238
np_line_edit->set_accessibility_name(TTRC("Path:"));
239
np_line_edit->set_h_size_flags(SIZE_EXPAND_FILL);
240
np_line_edit->connect(SceneStringName(text_submitted), callable_mp(this, &ReplicationEditor::_np_text_submitted));
241
hb->add_child(np_line_edit);
242
243
add_from_path_button = memnew(Button);
244
add_from_path_button->connect(SceneStringName(pressed), callable_mp(this, &ReplicationEditor::_add_pressed));
245
add_from_path_button->set_text(TTR("Add from path"));
246
hb->add_child(add_from_path_button);
247
248
vs = memnew(VSeparator);
249
vs->set_custom_minimum_size(Size2(30 * EDSCALE, 0));
250
hb->add_child(vs);
251
252
pin = memnew(Button);
253
pin->set_theme_type_variation(SceneStringName(FlatButton));
254
pin->set_toggle_mode(true);
255
pin->set_tooltip_text(TTR("Pin replication editor"));
256
hb->add_child(pin);
257
258
tree = memnew(Tree);
259
tree->set_hide_root(true);
260
tree->set_columns(4);
261
tree->set_column_titles_visible(true);
262
tree->set_column_title(0, TTR("Properties"));
263
tree->set_column_expand(0, true);
264
tree->set_column_title(1, TTR("Spawn"));
265
tree->set_column_expand(1, false);
266
tree->set_column_custom_minimum_width(1, 100);
267
tree->set_column_title(2, TTR("Replicate"));
268
tree->set_column_custom_minimum_width(2, 100);
269
tree->set_column_expand(2, false);
270
tree->set_column_expand(3, false);
271
tree->create_item();
272
tree->connect("button_clicked", callable_mp(this, &ReplicationEditor::_tree_button_pressed));
273
tree->connect("item_edited", callable_mp(this, &ReplicationEditor::_tree_item_edited));
274
tree->set_v_size_flags(SIZE_EXPAND_FILL);
275
vb->add_child(tree);
276
277
drop_label = memnew(Label);
278
drop_label->set_focus_mode(FOCUS_ACCESSIBILITY);
279
drop_label->set_text(TTR("Add properties using the options above, or\ndrag them from the inspector and drop them here."));
280
drop_label->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
281
drop_label->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
282
tree->add_child(drop_label);
283
drop_label->set_anchors_and_offsets_preset(Control::PRESET_FULL_RECT);
284
285
SET_DRAG_FORWARDING_CDU(tree, ReplicationEditor);
286
}
287
288
void ReplicationEditor::_bind_methods() {
289
ClassDB::bind_method(D_METHOD("_update_config"), &ReplicationEditor::_update_config);
290
ClassDB::bind_method(D_METHOD("_update_value", "property", "column", "value"), &ReplicationEditor::_update_value);
291
}
292
293
bool ReplicationEditor::_can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const {
294
Dictionary d = p_data;
295
if (!d.has("type")) {
296
return false;
297
}
298
String t = d["type"];
299
if (t != "obj_property") {
300
return false;
301
}
302
Object *obj = d["object"];
303
if (!obj) {
304
return false;
305
}
306
Node *node = Object::cast_to<Node>(obj);
307
if (!node) {
308
return false;
309
}
310
311
return true;
312
}
313
314
void ReplicationEditor::_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) {
315
if (current == nullptr) {
316
EditorNode::get_singleton()->show_warning(TTR("Select a replicator node in order to pick a property to add to it."));
317
return;
318
}
319
Node *root = current->get_node(current->get_root_path());
320
if (!root) {
321
EditorNode::get_singleton()->show_warning(TTR("Not possible to add a new property to synchronize without a root."));
322
return;
323
}
324
325
Dictionary d = p_data;
326
if (!d.has("type")) {
327
return;
328
}
329
String t = d["type"];
330
if (t != "obj_property") {
331
return;
332
}
333
Object *obj = d["object"];
334
if (!obj) {
335
return;
336
}
337
Node *node = Object::cast_to<Node>(obj);
338
if (!node) {
339
return;
340
}
341
342
String path = String(root->get_path_to(node));
343
path += ":" + String(d["property"]);
344
345
_add_sync_property(path);
346
}
347
348
void ReplicationEditor::_notification(int p_what) {
349
switch (p_what) {
350
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
351
if (!EditorThemeManager::is_generated_theme_outdated()) {
352
break;
353
}
354
[[fallthrough]];
355
}
356
case NOTIFICATION_ENTER_TREE: {
357
add_theme_style_override(SceneStringName(panel), EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SceneStringName(panel), SNAME("Panel")));
358
add_pick_button->set_button_icon(get_theme_icon(SNAME("Add"), EditorStringName(EditorIcons)));
359
pin->set_button_icon(get_theme_icon(SNAME("Pin"), EditorStringName(EditorIcons)));
360
} break;
361
}
362
}
363
364
void ReplicationEditor::_add_pressed() {
365
if (!current) {
366
EditorNode::get_singleton()->show_warning(TTR("Please select a MultiplayerSynchronizer first."));
367
return;
368
}
369
if (current->get_root_path().is_empty()) {
370
EditorNode::get_singleton()->show_warning(TTR("The MultiplayerSynchronizer needs a root path."));
371
return;
372
}
373
String np_text = np_line_edit->get_text();
374
375
if (np_text.is_empty()) {
376
EditorNode::get_singleton()->show_warning(TTR("Property/path must not be empty."));
377
return;
378
}
379
380
int idx = np_text.find_char(':');
381
if (idx == -1) {
382
np_text = ".:" + np_text;
383
} else if (idx == 0) {
384
np_text = "." + np_text;
385
}
386
NodePath path = NodePath(np_text);
387
if (path.is_empty()) {
388
EditorNode::get_singleton()->show_warning(vformat(TTR("Invalid property path: '%s'"), np_text));
389
return;
390
}
391
392
_add_sync_property(String(path));
393
}
394
395
void ReplicationEditor::_np_text_submitted(const String &p_newtext) {
396
_add_pressed();
397
}
398
399
void ReplicationEditor::_tree_item_edited() {
400
TreeItem *ti = tree->get_edited();
401
if (!ti || config.is_null()) {
402
return;
403
}
404
int column = tree->get_edited_column();
405
ERR_FAIL_COND(column < 1 || column > 2);
406
const NodePath prop = ti->get_metadata(0);
407
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
408
409
if (column == 1) {
410
undo_redo->create_action(TTR("Set spawn property"));
411
bool value = ti->is_checked(column);
412
undo_redo->add_do_method(config.ptr(), "property_set_spawn", prop, value);
413
undo_redo->add_undo_method(config.ptr(), "property_set_spawn", prop, !value);
414
undo_redo->add_do_method(this, "_update_value", prop, column, value ? 1 : 0);
415
undo_redo->add_undo_method(this, "_update_value", prop, column, value ? 0 : 1);
416
undo_redo->commit_action();
417
} else if (column == 2) {
418
undo_redo->create_action(TTR("Set sync property"));
419
int value = ti->get_range(column);
420
int old_value = config->property_get_replication_mode(prop);
421
// We have a hard limit of 64 watchable properties per synchronizer.
422
if (value == SceneReplicationConfig::REPLICATION_MODE_ON_CHANGE && config->get_watch_properties().size() >= 64) {
423
EditorNode::get_singleton()->show_warning(TTR("Each MultiplayerSynchronizer can have no more than 64 watched properties."));
424
ti->set_range(column, old_value);
425
return;
426
}
427
undo_redo->add_do_method(config.ptr(), "property_set_replication_mode", prop, value);
428
undo_redo->add_undo_method(config.ptr(), "property_set_replication_mode", prop, old_value);
429
undo_redo->add_do_method(this, "_update_value", prop, column, value);
430
undo_redo->add_undo_method(this, "_update_value", prop, column, old_value);
431
undo_redo->commit_action();
432
} else {
433
ERR_FAIL();
434
}
435
}
436
437
void ReplicationEditor::_tree_button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button) {
438
if (p_button != MouseButton::LEFT) {
439
return;
440
}
441
442
TreeItem *ti = Object::cast_to<TreeItem>(p_item);
443
if (!ti) {
444
return;
445
}
446
deleting = ti->get_metadata(0);
447
delete_dialog->set_text(TTR("Delete Property?") + "\n\"" + ti->get_text(0) + "\"");
448
delete_dialog->popup_centered();
449
}
450
451
void ReplicationEditor::_dialog_closed(bool p_confirmed) {
452
if (deleting.is_empty() || config.is_null()) {
453
return;
454
}
455
if (p_confirmed) {
456
const NodePath prop = deleting;
457
int idx = config->property_get_index(prop);
458
bool spawn = config->property_get_spawn(prop);
459
SceneReplicationConfig::ReplicationMode mode = config->property_get_replication_mode(prop);
460
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
461
undo_redo->create_action(TTR("Remove Property"));
462
undo_redo->add_do_method(config.ptr(), "remove_property", prop);
463
undo_redo->add_undo_method(config.ptr(), "add_property", prop, idx);
464
undo_redo->add_undo_method(config.ptr(), "property_set_spawn", prop, spawn);
465
undo_redo->add_undo_method(config.ptr(), "property_set_replication_mode", prop, mode);
466
undo_redo->add_do_method(this, "_update_config");
467
undo_redo->add_undo_method(this, "_update_config");
468
undo_redo->commit_action();
469
}
470
deleting = NodePath();
471
}
472
473
void ReplicationEditor::_update_value(const NodePath &p_prop, int p_column, int p_value) {
474
if (!tree->get_root()) {
475
return;
476
}
477
TreeItem *ti = tree->get_root()->get_first_child();
478
while (ti) {
479
if (ti->get_metadata(0).operator NodePath() == p_prop) {
480
if (p_column == 1) {
481
ti->set_checked(p_column, p_value != 0);
482
} else if (p_column == 2) {
483
ti->set_range(p_column, p_value);
484
}
485
return;
486
}
487
ti = ti->get_next();
488
}
489
}
490
491
void ReplicationEditor::_update_config() {
492
deleting = NodePath();
493
tree->clear();
494
tree->create_item();
495
drop_label->set_visible(true);
496
if (config.is_null()) {
497
return;
498
}
499
TypedArray<NodePath> props = config->get_properties();
500
if (props.size()) {
501
drop_label->set_visible(false);
502
}
503
for (int i = 0; i < props.size(); i++) {
504
const NodePath path = props[i];
505
_add_property(path, config->property_get_spawn(path), config->property_get_replication_mode(path));
506
}
507
}
508
509
void ReplicationEditor::edit(MultiplayerSynchronizer *p_sync) {
510
if (current == p_sync) {
511
return;
512
}
513
current = p_sync;
514
if (current) {
515
config = current->get_replication_config();
516
} else {
517
config.unref();
518
}
519
_update_config();
520
}
521
522
Ref<Texture2D> ReplicationEditor::_get_class_icon(const Node *p_node) {
523
if (!p_node || !has_theme_icon(p_node->get_class(), EditorStringName(EditorIcons))) {
524
return get_theme_icon(SNAME("ImportFail"), EditorStringName(EditorIcons));
525
}
526
return get_theme_icon(p_node->get_class(), EditorStringName(EditorIcons));
527
}
528
529
static bool can_sync(const Variant &p_var) {
530
switch (p_var.get_type()) {
531
case Variant::RID:
532
case Variant::OBJECT:
533
return false;
534
case Variant::ARRAY: {
535
const Array &arr = p_var;
536
if (arr.is_typed()) {
537
const uint32_t type = arr.get_typed_builtin();
538
return (type != Variant::RID) && (type != Variant::OBJECT);
539
}
540
return true;
541
}
542
default:
543
return true;
544
}
545
}
546
547
void ReplicationEditor::_add_property(const NodePath &p_property, bool p_spawn, SceneReplicationConfig::ReplicationMode p_mode) {
548
String prop = String(p_property);
549
TreeItem *item = tree->create_item();
550
item->set_selectable(0, false);
551
item->set_selectable(1, false);
552
item->set_selectable(2, false);
553
item->set_selectable(3, false);
554
item->set_text(0, prop);
555
item->set_metadata(0, prop);
556
Node *root_node = current && !current->get_root_path().is_empty() ? current->get_node(current->get_root_path()) : nullptr;
557
Ref<Texture2D> icon = _get_class_icon(root_node);
558
if (root_node) {
559
String path = prop.substr(0, prop.find_char(':'));
560
String subpath = prop.substr(path.size());
561
Node *node = root_node->get_node_or_null(path);
562
if (!node) {
563
node = root_node;
564
}
565
item->set_text(0, String(node->get_name()) + ":" + subpath);
566
icon = _get_class_icon(node);
567
bool valid = false;
568
Variant value = node->get(subpath, &valid);
569
if (valid && !can_sync(value)) {
570
item->set_icon(0, get_theme_icon(SNAME("StatusWarning"), EditorStringName(EditorIcons)));
571
item->set_tooltip_text(0, TTR("Property of this type not supported."));
572
} else {
573
item->set_icon(0, icon);
574
}
575
} else {
576
item->set_icon(0, icon);
577
}
578
item->add_button(3, get_theme_icon(SNAME("Remove"), EditorStringName(EditorIcons)));
579
item->set_text_alignment(1, HORIZONTAL_ALIGNMENT_CENTER);
580
item->set_cell_mode(1, TreeItem::CELL_MODE_CHECK);
581
item->set_checked(1, p_spawn);
582
item->set_editable(1, true);
583
item->set_text_alignment(2, HORIZONTAL_ALIGNMENT_CENTER);
584
item->set_cell_mode(2, TreeItem::CELL_MODE_RANGE);
585
item->set_range_config(2, 0, 2, 1);
586
item->set_text(2, TTR("Never", "Replication Mode") + "," + TTR("Always", "Replication Mode") + "," + TTR("On Change", "Replication Mode"));
587
item->set_range(2, (int)p_mode);
588
item->set_editable(2, true);
589
}
590
591