@@ -100,11 +100,24 @@ public void AddMaterial(Material material)
100
100
materials . Add ( material . Uuid , material ) ;
101
101
}
102
102
103
+ /// <summary>Determines whether the specified UUID has material.</summary>
104
+ /// <param name="uuid">The UUID.</param>
105
+ /// <returns>
106
+ /// <c>true</c> if the specified UUID has material; otherwise, <c>false</c>.</returns>
103
107
public bool HasMaterial ( string uuid )
104
108
{
105
109
return materials . ContainsKey ( uuid ) ;
106
110
}
107
111
112
+ /// <summary>Converts to string.</summary>
113
+ /// <returns>A <see cref="string"/> that represents this instance.</returns>
114
+ public override string ToString ( ) => ToString ( JsonDefaultSetting ) ;
115
+
116
+ /// <summary>Converts to string.</summary>
117
+ /// <param name="settings">The settings.</param>
118
+ /// <returns>A <see cref="string"/> that represents this instance.</returns>
119
+ public string ToString ( JsonSerializerSettings settings ) => JsonConvert . SerializeObject ( this , settings ) ;
120
+
108
121
[ DataContract ]
109
122
private class ObjectMetadata
110
123
{
@@ -162,15 +175,6 @@ internal ObjectMetadata()
162
175
[ DataMember ( Name = "version" ) ]
163
176
[ JsonProperty ( "version" ) ]
164
177
public string Version { get ; } = "4.3" ;
165
-
166
- /// <summary>Converts to string.</summary>
167
- /// <returns>A <see cref="string"/> that represents this instance.</returns>
168
- public override string ToString ( ) => ToString ( JsonDefaultSetting ) ;
169
-
170
- /// <summary>Converts to string.</summary>
171
- /// <param name="settings">The settings.</param>
172
- /// <returns>A <see cref="string"/> that represents this instance.</returns>
173
- public string ToString ( JsonSerializerSettings settings ) => JsonConvert . SerializeObject ( this , settings ) ;
174
178
}
175
179
}
176
180
}
0 commit comments