Ignore:
Timestamp:
Aug 7, 2022, 1:11:51 AM (2 years ago)
Author:
alloc
Message:

Finished up REST API base
Made API handler look for APIs in all loaded mods

Location:
binary-improvements2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2

    • Property svn:ignore
      •  

        old new  
         1.idea
        12bin
        2 .idea
         3server-fixes.sln.DotSettings.user
  • binary-improvements2/7dtd-server-fixes

    • Property svn:ignore
      •  

        old new  
         1bin
        12obj
  • binary-improvements2/7dtd-server-fixes/src/JSON/JSONObject.cs

    r383 r389  
    77
    88                public JSONNode this [string _name] {
    9                         get { return nodes [_name]; }
    10                         set { nodes [_name] = value; }
     9                        get => nodes [_name];
     10                        set => nodes [_name] = value;
    1111                }
    1212
    13                 public int Count {
    14                         get { return nodes.Count; }
    15                 }
     13                public int Count => nodes.Count;
    1614
    17                 public List<string> Keys {
    18                         get { return new List<string> (nodes.Keys); }
    19                 }
     15                public List<string> Keys => new List<string> (nodes.Keys);
    2016
    2117                public bool ContainsKey (string _name) {
    2218                        return nodes.ContainsKey (_name);
     19                }
     20
     21                public bool TryGetValue (string _name, out JSONNode _node) {
     22                        return nodes.TryGetValue (_name, out _node);
    2323                }
    2424
Note: See TracChangeset for help on using the changeset viewer.