Changeset 277 for binary-improvements


Ignore:
Timestamp:
May 19, 2016, 5:28:45 PM (3 years ago)
Author:
alloc
Message:

fixes 8_11_14_1

Location:
binary-improvements/MapRendering
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/ModInfo.xml

    r271 r277  
    55                <Description value="Render the game map to image map tiles as it is uncovered" />
    66                <Author value="Christian 'Alloc' Illy" />
    7                 <Version value="13" />
     7                <Version value="14" />
    88                <Website value="http://7dtd.illy.bz" />
    99        </ModInfo>
  • binary-improvements/MapRendering/Web/API/GetPlayersLocation.cs

    r268 r277  
    4747                                        pJson.Add ("totalplaytime", new JSONNumber (p.TotalPlayTime));
    4848                                        pJson.Add ("lastonline", new JSONString (p.LastOnline.ToString ("s")));
     49                                        pJson.Add ("ping", new JSONNumber (p.IsOnline ? p.ClientInfo.ping : -1));
    4950
    5051                                        playersJsResult.Add (pJson);
  • binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs

    r268 r277  
    3131                                p.Add ("position", pos);
    3232
     33                                // Deprecated!
    3334                                p.Add ("experience", new JSONNumber (player != null ? player.Experience : 0));
     35
    3436                                p.Add ("level", new JSONNumber (player != null ? player.Level : -1));
    3537                                p.Add ("health", new JSONNumber (current.Value.Health));
     
    4244                                p.Add ("totalplaytime", new JSONNumber (player != null ? player.TotalPlayTime : -1));
    4345                                p.Add ("lastonline", new JSONString (player != null ? player.LastOnline.ToString ("s") : string.Empty));
     46                                p.Add ("ping", new JSONNumber (ci != null ? ci.ping : -1));
    4447
    4548                                players.Add(p);
  • binary-improvements/MapRendering/WebAndMapRendering.csproj

    r254 r277  
    8585    <Compile Include="Web\API\GetLog.cs" />
    8686    <Compile Include="Web\API\GetWebUIUpdates.cs" />
     87    <Compile Include="Web\API\GetServerInfo.cs" />
    8788  </ItemGroup>
    8889  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Note: See TracChangeset for help on using the changeset viewer.