Changeset 436 for binary-improvements2/WebServer/src/WebAPI/JsonCommons.cs
- Timestamp:
- May 18, 2023, 3:09:12 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebAPI/JsonCommons.cs
r434 r436 33 33 _writer.WriteRaw (jsonKeyPositionZ); 34 34 _writer.WriteSingle (_position.z); 35 36 _writer.WriteEndObject (); 37 } 38 39 private static readonly byte[] jsonKeyDays = JsonWriter.GetEncodedPropertyNameWithBeginObject ("days"); 40 private static readonly byte[] jsonKeyHours = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("hours"); 41 private static readonly byte[] jsonKeyMinutes = JsonWriter.GetEncodedPropertyNameWithPrefixValueSeparator ("minutes"); 42 43 public static void WriteGameTimeObject (ref JsonWriter _writer, int _days, int _hours, int _minutes) { 44 _writer.WriteRaw (jsonKeyDays); 45 _writer.WriteInt32 (_days); 46 47 _writer.WriteRaw (jsonKeyHours); 48 _writer.WriteInt32 (_hours); 49 50 _writer.WriteRaw (jsonKeyMinutes); 51 _writer.WriteInt32 (_minutes); 35 52 36 53 _writer.WriteEndObject ();
Note:
See TracChangeset
for help on using the changeset viewer.