- Timestamp:
- May 17, 2023, 11:05:59 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebAPI/APIs/GameData/Mods.cs
r433 r434 3 3 using Webserver.Permissions; 4 4 5 namespace Webserver.WebAPI.APIs {5 namespace Webserver.WebAPI.APIs.GameData { 6 6 [UsedImplicitly] 7 7 public class Mods : AbsRestApi { … … 12 12 writer.WriteBeginArray (); 13 13 14 for (int i = 0; i < _parent. webMods.Count; i++) {15 WebMod webMod = _parent. webMods [i];14 for (int i = 0; i < _parent.WebMods.Count; i++) { 15 WebMod webMod = _parent.WebMods [i]; 16 16 17 17 if (i > 0) { … … 62 62 _writer.WriteValueSeparator (); 63 63 _writer.WritePropertyName ("displayName"); 64 JsonCommons.WriteStringOrNull (ref _writer,_webMod.ParentMod.DisplayName);64 _writer.WriteString (_webMod.ParentMod.DisplayName); 65 65 66 66 _writer.WriteValueSeparator (); 67 67 _writer.WritePropertyName ("description"); 68 JsonCommons.WriteStringOrNull (ref _writer,_webMod.ParentMod.Description);68 _writer.WriteString (_webMod.ParentMod.Description); 69 69 70 70 _writer.WriteValueSeparator (); 71 71 _writer.WritePropertyName ("author"); 72 JsonCommons.WriteStringOrNull (ref _writer,_webMod.ParentMod.Author);72 _writer.WriteString (_webMod.ParentMod.Author); 73 73 74 74 _writer.WriteValueSeparator (); 75 75 _writer.WritePropertyName ("version"); 76 JsonCommons.WriteStringOrNull (ref _writer,_webMod.ParentMod.VersionString);76 _writer.WriteString (_webMod.ParentMod.VersionString); 77 77 78 78 _writer.WriteValueSeparator (); 79 79 _writer.WritePropertyName ("website"); 80 JsonCommons.WriteStringOrNull (ref _writer,_webMod.ParentMod.Website);80 _writer.WriteString (_webMod.ParentMod.Website); 81 81 } 82 82
Note:
See TracChangeset
for help on using the changeset viewer.