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