- Timestamp:
- Aug 6, 2022, 11:32:32 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/Web/API/GetHostileLocation.cs
r383 r387 2 2 using AllocsFixes.JSON; 3 3 using AllocsFixes.LiveData; 4 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;5 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;6 4 7 5 namespace AllocsFixes.NetConnections.Servers.Web.API { 8 internal class GetHostileLocation : WebAPI {6 internal class GetHostileLocation : AbsWebAPI { 9 7 private readonly List<EntityEnemy> enemies = new List<EntityEnemy> (); 10 8 11 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 12 int _permissionLevel) { 9 public override void HandleRequest (RequestContext _context) { 13 10 JSONArray hostilesJsResult = new JSONArray (); 14 11 … … 37 34 } 38 35 39 W riteJSON (_resp, hostilesJsResult);36 WebUtils.WriteJson (_context.Response, hostilesJsResult); 40 37 } 41 38 }
Note:
See TracChangeset
for help on using the changeset viewer.