Changeset 268 for binary-improvements/MapRendering
- Timestamp:
- Apr 28, 2016, 1:51:17 PM (9 years ago)
- Location:
- binary-improvements/MapRendering/Web/API
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetPlayersLocation.cs
r256 r268 45 45 pJson.Add("position", pos); 46 46 47 playersJsResult.Add (pJson); 47 pJson.Add ("totalplaytime", new JSONNumber (p.TotalPlayTime)); 48 pJson.Add ("lastonline", new JSONString (p.LastOnline.ToString ("s"))); 49 50 playersJsResult.Add (pJson); 48 51 } 49 52 } -
binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs
r256 r268 40 40 p.Add ("score", new JSONNumber (current.Value.Score)); 41 41 42 p.Add ("totalplaytime", new JSONNumber (player != null ? player.TotalPlayTime : -1)); 43 p.Add ("lastonline", new JSONString (player != null ? player.LastOnline.ToString ("s") : string.Empty)); 44 42 45 players.Add(p); 43 46 }
Note:
See TracChangeset
for help on using the changeset viewer.