- Timestamp:
- Aug 2, 2017, 6:46:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetHostileLocation.cs
r251 r306 9 9 class GetHostileLocation : WebAPI 10 10 { 11 private List<EntityEnemy> enemies = new List<EntityEnemy> (); 12 11 13 public override void HandleRequest(HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel) 12 14 { 13 15 JSONArray hostilesJsResult = new JSONArray(); 14 16 15 foreach (EntityEnemy entity in Hostiles.List) 17 Hostiles.Get (enemies); 18 for (int i = 0; i < enemies.Count; i++) 16 19 { 20 EntityEnemy entity = enemies [i]; 17 21 Vector3i position = new Vector3i(entity.GetPosition()); 18 22
Note:
See TracChangeset
for help on using the changeset viewer.