- Timestamp:
- Nov 9, 2021, 6:28:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetPlayerInventories.cs
r349 r369 8 8 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 9 9 int _permissionLevel) { 10 11 bool showIconColor, showIconName; 12 GetPlayerInventory.GetInventoryArguments (_req, out showIconColor, out showIconName); 10 GetPlayerInventory.GetInventoryArguments (_req, out bool showIconColor, out bool showIconName); 13 11 14 12 JSONArray AllInventoriesResult = new JSONArray (); 15 13 16 foreach (KeyValuePair< string, Player> kvp in PersistentContainer.Instance.Players.Dict) {14 foreach (KeyValuePair<PlatformUserIdentifierAbs, Player> kvp in PersistentContainer.Instance.Players.Dict) { 17 15 Player p = kvp.Value; 18 16 … … 22 20 23 21 if (p.IsOnline) { 24 AllInventoriesResult.Add (GetPlayerInventory.DoPlayer (kvp.Key , p, showIconColor, showIconName));22 AllInventoriesResult.Add (GetPlayerInventory.DoPlayer (kvp.Key.CombinedString, p, showIconColor, showIconName)); 25 23 } 26 24 }
Note:
See TracChangeset
for help on using the changeset viewer.