- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetPlayerInventories.cs
r321 r325 1 using System.Net; 1 2 using AllocsFixes.JSON; 2 3 using AllocsFixes.PersistentData; 3 using System;4 using System.Collections.Generic;5 using System.Net;6 4 7 5 namespace AllocsFixes.NetConnections.Servers.Web.API { 8 6 public class GetPlayerInventories : WebAPI { 7 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, 8 int permissionLevel) { 9 JSONArray AllInventoriesResult = new JSONArray (); 9 10 10 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel) {11 JSONArray AllInventoriesResult = new JSONArray ();12 13 11 foreach (string sid in PersistentContainer.Instance.Players.SteamIDs) { 14 12 Player p = PersistentContainer.Instance.Players [sid, false]; … … 55 53 WriteJSON (resp, AllInventoriesResult); 56 54 } 57 58 55 } 59 56 } 60
Note:
See TracChangeset
for help on using the changeset viewer.