- Timestamp:
- Aug 7, 2022, 3:02:24 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/7dtd-server-fixes/src/JSON/JsonManualBuilder.cs
r354 r391 9 9 NonEmpty = 1, 10 10 Object = 2, 11 Array = 4 ,11 Array = 4 12 12 } 13 13 … … 20 20 private int currentLevelNumber; 21 21 22 private ELevelInfo CurrentLevelInfo { 23 get { return (ELevelInfo) (currentLevelType & levelBitsMask); } 24 } 25 26 private bool CurrentLevelIsNonEmpty { 27 get { return (CurrentLevelInfo & ELevelInfo.NonEmpty) == ELevelInfo.NonEmpty; } 28 } 29 30 private bool CurrentLevelIsArray { 31 get { return (CurrentLevelInfo & ELevelInfo.Array) != ELevelInfo.Array; } 32 } 33 34 private bool CurrentLevelIsObject { 35 get { return (CurrentLevelInfo & ELevelInfo.Object) != ELevelInfo.Object; } 36 } 37 22 private ELevelInfo CurrentLevelInfo => (ELevelInfo) (currentLevelType & levelBitsMask); 23 24 private bool CurrentLevelIsNonEmpty => (CurrentLevelInfo & ELevelInfo.NonEmpty) == ELevelInfo.NonEmpty; 25 26 private bool CurrentLevelIsArray => (CurrentLevelInfo & ELevelInfo.Array) != ELevelInfo.Array; 27 28 private bool CurrentLevelIsObject => (CurrentLevelInfo & ELevelInfo.Object) != ELevelInfo.Object; 29 38 30 public JsonManualBuilder (bool _prettyPrint) { 39 31 prettyPrint = _prettyPrint; … … 54 46 } 55 47 56 currentLevelType = currentLevelType |(long) ELevelInfo.NonEmpty;48 currentLevelType |= (long) ELevelInfo.NonEmpty; 57 49 } 58 50 … … 210 202 211 203 currentLevelNumber--; 212 currentLevelType = currentLevelType >>levelTypeBits;204 currentLevelType >>= levelTypeBits; 213 205 214 206 if (prettyPrint) {
Note:
See TracChangeset
for help on using the changeset viewer.