+12
-0
lines changedFilter options
+12
-0
lines changed Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ export default class Mech extends Model {
16
16
toJSON() {
17
17
return {...this.ref};
18
18
}
19
+
20
+
updateFrom(otherMech) {
21
+
this.update(otherMech.ref);
22
+
}
19
23
}
20
24
21
25
Mech.modelName = "Mech";
Original file line number Diff line number Diff line change
@@ -8,6 +8,10 @@ export default class MechDesign extends Model {
8
8
toJSON() {
9
9
return {...this.ref};
10
10
}
11
+
12
+
updateFrom(otherDesign) {
13
+
this.update(otherDesign.ref);
14
+
}
11
15
}
12
16
13
17
MechDesign.modelName = "MechDesign";
Original file line number Diff line number Diff line change
@@ -21,6 +21,10 @@ export default class Pilot extends Model {
21
21
toJSON() {
22
22
return {...this.ref};
23
23
}
24
+
25
+
updateFrom(otherPilot) {
26
+
this.update(otherPilot.ref);
27
+
}
24
28
}
25
29
26
30
Pilot.modelName = "Pilot";
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4