- Timestamp:
- Nov 16, 2018, 10:38:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetPlayerInventories.cs
r325 r332 1 using System.Collections.Generic; 1 2 using System.Net; 2 3 using AllocsFixes.JSON; … … 9 10 JSONArray AllInventoriesResult = new JSONArray (); 10 11 11 foreach ( string sid in PersistentContainer.Instance.Players.SteamIDs) {12 Player p = PersistentContainer.Instance.Players [sid, false];12 foreach (KeyValuePair<string, Player> kvp in PersistentContainer.Instance.Players.Dict) { 13 Player p = kvp.Value; 13 14 14 15 if (p == null) { … … 23 24 JSONArray belt = new JSONArray (); 24 25 JSONObject equipment = new JSONObject (); 25 result.Add ("steamid", new JSONString ( sid));26 result.Add ("steamid", new JSONString (kvp.Key)); 26 27 result.Add ("entityid", new JSONNumber (p.EntityID)); 27 28 result.Add ("playername", new JSONString (p.Name));
Note:
See TracChangeset
for help on using the changeset viewer.