Changeset 313 for binary-improvements/MapRendering/Web
- Timestamp:
- Jan 18, 2018, 4:56:45 PM (8 years ago)
- Location:
- binary-improvements/MapRendering/Web/API
- Files:
- 
      - 4 edited
 
 - 
          
  GetAnimalsLocation.cs (modified) (1 diff)
- 
          
  GetHostileLocation.cs (modified) (1 diff)
- 
          
  GetStats.cs (modified) (1 diff)
- 
          
  GetWebUIUpdates.cs (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      binary-improvements/MapRendering/Web/API/GetAnimalsLocation.csr306 r313 15 15 JSONArray animalsJsResult = new JSONArray(); 16 16 17 Animals. Get (animals);17 Animals.Instance.Get (animals); 18 18 for (int i = 0; i < animals.Count; i++) 19 19 { 
- 
      binary-improvements/MapRendering/Web/API/GetHostileLocation.csr306 r313 15 15 JSONArray hostilesJsResult = new JSONArray(); 16 16 17 Hostiles. Get (enemies);17 Hostiles.Instance.Get (enemies); 18 18 for (int i = 0; i < enemies.Count; i++) 19 19 { 
- 
      binary-improvements/MapRendering/Web/API/GetStats.csr306 r313 21 21 22 22 result.Add ("players", new JSONNumber (GameManager.Instance.World.Players.Count)); 23 result.Add ("hostiles", new JSONNumber (Hostiles. GetCount ()));24 result.Add ("animals", new JSONNumber (Animals. GetCount ()));23 result.Add ("hostiles", new JSONNumber (Hostiles.Instance.GetCount ())); 24 result.Add ("animals", new JSONNumber (Animals.Instance.GetCount ())); 25 25 26 26 WriteJSON (resp, result); 
- 
      binary-improvements/MapRendering/Web/API/GetWebUIUpdates.csr306 r313 24 24 25 25 result.Add ("players", new JSONNumber (GameManager.Instance.World.Players.Count)); 26 result.Add ("hostiles", new JSONNumber (Hostiles. GetCount ()));27 result.Add ("animals", new JSONNumber (Animals. GetCount ()));26 result.Add ("hostiles", new JSONNumber (Hostiles.Instance.GetCount ())); 27 result.Add ("animals", new JSONNumber (Animals.Instance.GetCount ())); 28 28 29 29 result.Add ("newlogs", new JSONNumber (LogBuffer.Instance.LatestLine - latestLine)); 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
