77
88namespace SharpDenizenTools . MetaObjects
99{
10- /// <summary>
11- /// Abstract base for a type of meta object.
12- /// </summary>
10+ /// <summary>Abstract base for a type of meta object.</summary>
1311 public abstract class MetaObject
1412 {
15- /// <summary>
16- /// Get the meta type of the object.
17- /// </summary>
13+ /// <summary>Get the meta type of the object.</summary>
1814 public abstract MetaType Type { get ; }
1915
20- /// <summary>
21- /// Get the name of the object. May have capitals.
22- /// </summary>
16+ /// <summary>Get the name of the object. May have capitals.</summary>
2317 public abstract string Name { get ; }
2418
25- /// <summary>
26- /// Whether this object has multiple names.
27- /// </summary>
19+ /// <summary>Whether this object has multiple names.</summary>
2820 public bool HasMultipleNames = false ;
2921
30- /// <summary>
31- /// If the object has multiple names, returns the full set of names.
32- /// </summary>
22+ /// <summary>If the object has multiple names, returns the full set of names.</summary>
3323 public virtual IEnumerable < string > MultiNames => new string [ ] { CleanName } ;
3424
35- /// <summary>
36- /// Get the clean lowercase name of the object.
37- /// </summary>
25+ /// <summary>Get the clean lowercase name of the object.</summary>
3826 public virtual string CleanName => Name . ToLowerFast ( ) ;
3927
40- /// <summary>
41- /// Other words that mean the same thing.
42- /// </summary>
28+ /// <summary>Other words that mean the same thing.</summary>
4329 public List < string > Synonyms = new ( ) ;
4430
45- /// <summary>
46- /// What categorization group the object is in.
47- /// </summary>
31+ /// <summary>What categorization group the object is in.</summary>
4832 public string Group ;
4933
50- /// <summary>
51- /// Any warnings applied to this object type.
52- /// </summary>
34+ /// <summary>Any warnings applied to this object type.</summary>
5335 public List < string > Warnings = new ( ) ;
5436
55- /// <summary>
56- /// Required plugin(s) if applicable.
57- /// </summary>
37+ /// <summary>Required plugin(s) if applicable.</summary>
5838 public string Plugin ;
5939
60- /// <summary>
61- /// The file in source code that defined this meta object.
62- /// </summary>
40+ /// <summary>The file in source code that defined this meta object.</summary>
6341 public string SourceFile ;
6442
65- /// <summary>
66- /// A deprecation notice, if any.
67- /// </summary>
43+ /// <summary>A deprecation notice, if any.</summary>
6844 public string Deprecated ;
6945
70- /// <summary>
71- /// The backing <see cref="MetaDocs"/> instance.
72- /// </summary>
46+ /// <summary>The backing <see cref="MetaDocs"/> instance.</summary>
7347 public MetaDocs Meta ;
7448
75- /// <summary>
76- /// Apply a setting value to this meta object.
77- /// </summary>
49+ /// <summary>Apply a setting value to this meta object.</summary>
7850 /// <param name="docs">The relevant meta docs instance.</param>
7951 /// <param name="key">The setting key.</param>
8052 /// <param name="value">The setting value.</param>
@@ -103,9 +75,7 @@ public virtual bool ApplyValue(MetaDocs docs, string key, string value)
10375 }
10476 }
10577
106- /// <summary>
107- /// Finds the closing tag mark, compensating for layered tags.
108- /// </summary>
78+ /// <summary>Finds the closing tag mark, compensating for layered tags.</summary>
10979 /// <param name="text">The raw text.</param>
11080 /// <param name="startIndex">The index to start searching at.</param>
11181 /// <returns>The closing symbol index, or -1 if not found.</returns>
@@ -131,23 +101,17 @@ public static int FindClosingTagMark(string text, int startIndex)
131101 return - 1 ;
132102 }
133103
134- /// <summary>
135- /// Adds the object to the meta docs set.
136- /// </summary>
104+ /// <summary>Adds the object to the meta docs set.</summary>
137105 /// <param name="docs">The docs set.</param>
138106 public abstract void AddTo ( MetaDocs docs ) ;
139107
140- /// <summary>
141- /// Checks the object for validity, after all loading is done.
142- /// </summary>
108+ /// <summary>Checks the object for validity, after all loading is done.</summary>
143109 /// <param name="docs">The relevant docs object.</param>
144110 public virtual void PostCheck ( MetaDocs docs )
145111 {
146112 }
147113
148- /// <summary>
149- /// Post-check handler to require specific values be set (not-null).
150- /// </summary>
114+ /// <summary>Post-check handler to require specific values be set (not-null).</summary>
151115 /// <param name="docs">The relevant docs object.</param>
152116 /// <param name="requiredValues">The values that are required.</param>
153117 public void Require ( MetaDocs docs , params object [ ] requiredValues )
@@ -161,9 +125,7 @@ public void Require(MetaDocs docs, params object[] requiredValues)
161125 }
162126 }
163127
164- /// <summary>
165- /// Post-check handler to validate synonyms don't duplicate existing values.
166- /// </summary>
128+ /// <summary>Post-check handler to validate synonyms don't duplicate existing values.</summary>
167129 public void PostCheckSynonyms < T > ( MetaDocs docs , Dictionary < string , T > objects ) where T : MetaObject
168130 {
169131 IEnumerable < string > badSynonyms = Synonyms . Where ( s => objects . ContainsKey ( s ) ) ;
@@ -178,9 +140,7 @@ public void PostCheckSynonyms<T>(MetaDocs docs, Dictionary<string, T> objects) w
178140 }
179141 }
180142
181- /// <summary>
182- /// Post-check handler for linkable text, to find bad links.
183- /// </summary>
143+ /// <summary>Post-check handler for linkable text, to find bad links.</summary>
184144 /// <param name="docs">The relevant docs object.</param>
185145 /// <param name="linkedtext">The relevant linkable list.</param>
186146 public void PostCheckLinkableText ( MetaDocs docs , string linkedtext )
@@ -269,9 +229,7 @@ public void PostCheckLinkableText(MetaDocs docs, string linkedtext)
269229 }
270230 }
271231
272- /// <summary>
273- /// Post-check handler for tags, used in <see cref="MetaCommand"/> and <see cref="MetaMechanism"/>.
274- /// </summary>
232+ /// <summary>Post-check handler for tags, used in <see cref="MetaCommand"/> and <see cref="MetaMechanism"/>.</summary>
275233 /// <param name="docs">The relevant docs object.</param>
276234 /// <param name="tags">The relevant tags list.</param>
277235 public void PostCheckTags ( MetaDocs docs , string [ ] tags )
0 commit comments