Ignore:
Timestamp:
Jul 28, 2023, 8:42:10 PM (16 months ago)
Author:
alloc
Message:

24_29_43
Switched over to vanilla Web infrastructure

Location:
binary-improvements/MapRendering/API
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/API/GetHostileLocation.cs

    r453 r454  
    11using System.Collections.Generic;
    2 using System.Net;
    32using AllocsFixes.JSON;
    43using AllocsFixes.LiveData;
     4using Webserver;
     5using Webserver.WebAPI;
    56
    6 namespace AllocsFixes.NetConnections.Servers.Web.API {
    7         internal class GetHostileLocation : WebAPI {
     7namespace AllocsFixes.WebAPIs {
     8        internal class GetHostileLocation : AbsWebAPI {
    89                private readonly List<EntityEnemy> enemies = new List<EntityEnemy> ();
    910
    10                 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
    11                         int _permissionLevel) {
     11                public override void HandleRequest (RequestContext _context) {
    1212                        JSONArray hostilesJsResult = new JSONArray ();
    1313
     
    3636                        }
    3737
    38                         WriteJSON (_resp, hostilesJsResult);
     38                        LegacyApiHelper.WriteJSON (_context.Response, hostilesJsResult);
    3939                }
    4040        }
Note: See TracChangeset for help on using the changeset viewer.