Changeset 432


Ignore:
Timestamp:
May 7, 2023, 2:54:45 PM (20 months ago)
Author:
alloc
Message:

Added API "item"

Location:
binary-improvements2
Files:
1 added
20 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/CommandExtensions/ModInfo.xml

    r429 r432  
    55        <Description value="Additional commands for server operation" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.0.275.0" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/MapRendering/ModInfo.xml

    r429 r432  
    55        <Description value="Render the game map to image map tiles as it is uncovered" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.0.275.0" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/MarkersMod/ModInfo.xml

    r430 r432  
    55        <Description value="Allows placing custom markers on the web map" />
    66        <Author value="Catalysm and Alloc" />
    7         <Version value="21.0.275.1" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/WebServer/ModInfo.xml

    r429 r432  
    55        <Description value="Integrated Webserver for the Web Dashboard and server APIs" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.0.275.0" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/WebServer/WebServer.csproj

    r431 r432  
    129129    <Compile Include="src\WebAPI\APIs\GetPlayersOnline.cs" />
    130130    <Compile Include="src\WebAPI\APIs\Hostile.cs" />
     131    <Compile Include="src\WebAPI\APIs\Item.cs" />
    131132    <Compile Include="src\WebAPI\APIs\Log.cs" />
    132133    <Compile Include="src\WebAPI\APIs\Player.cs" />
     
    173174      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    174175    </None>
    175     <None Include="webroot\**"
    176           CopyToOutputDirectory="Always"
    177           LinkBase="webroot\" />
     176    <None Include="webroot\**" CopyToOutputDirectory="Always" LinkBase="webroot\" />
    178177  </ItemGroup>
    179178  <ItemGroup>
  • binary-improvements2/WebServer/src/WebAPI/APIs/Mods.cs

    r426 r432  
    5656                }
    5757
    58                 protected override void HandleRestGet (RequestContext _context) {
    59                         PrepareEnvelopedResult (out JsonWriter writer);
    60                         writer.WriteRaw (loadedWebMods);
    61                         SendEnvelopedResult (_context, ref writer);
    62                 }
    63 
    64                 public override int DefaultPermissionLevel () => AdminWebModules.PermissionLevelGuest;
    65 
    6658                private void writeModJson (ref JsonWriter _writer, WebMod _webMod) {
    6759                        _writer.WritePropertyName ("name");
     
    8880                        JsonCommons.WriteStringOrNull (ref _writer, _webMod.ParentMod.Website);
    8981                }
     82
     83                protected override void HandleRestGet (RequestContext _context) {
     84                        PrepareEnvelopedResult (out JsonWriter writer);
     85                        writer.WriteRaw (loadedWebMods);
     86                        SendEnvelopedResult (_context, ref writer);
     87                }
     88
     89                public override int DefaultPermissionLevel () => AdminWebModules.PermissionLevelGuest;
    9090        }
    9191}
  • binary-improvements2/bin/Mods/TFP_CommandExtensions/ModInfo.xml

    r429 r432  
    55        <Description value="Additional commands for server operation" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.0.275.0" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/bin/Mods/TFP_MapRendering/ModInfo.xml

    r429 r432  
    55        <Description value="Render the game map to image map tiles as it is uncovered" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.0.275.0" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/bin/Mods/TFP_WebServer/ModInfo.xml

    r429 r432  
    55        <Description value="Integrated Webserver for the Web Dashboard and server APIs" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.0.275.0" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/bin/Mods/Xample_MarkersMod/ModInfo.xml

    r430 r432  
    55        <Description value="Allows placing custom markers on the web map" />
    66        <Author value="Catalysm and Alloc" />
    7         <Version value="21.0.275.1" />
     7        <Version value="21.0.280.0" />
    88        <Website value="" />
    99</xml>
Note: See TracChangeset for help on using the changeset viewer.