Skip to content

Commit

Permalink
publication complete
Browse files Browse the repository at this point in the history
  • Loading branch information
lostinplace committed Jun 7, 2019
1 parent be1d1be commit 339f029
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 16 deletions.
2 changes: 1 addition & 1 deletion APIToolsTests/APIToolsTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<ItemGroup>
<Reference Include="Mif">
<HintPath>..\dependencies\Mif.dll</HintPath>
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\DedicatedServer\EmpyrionDedicated_Data\Managed\Mif.dll</HintPath>
</Reference>
<Reference Include="ModApi">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\DedicatedServer\EmpyrionDedicated_Data\Managed\ModApi.dll</HintPath>
Expand Down
4 changes: 2 additions & 2 deletions EmpyrionAPIDefinitions/EmpyrionAPIDefinitions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Mif">
<HintPath>..\dependencies\Mif.dll</HintPath>
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\DedicatedServer\EmpyrionDedicated_Data\Managed\Mif.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ModApi">
<HintPath>..\dependencies\ModApi.dll</HintPath>
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\DedicatedServer\EmpyrionDedicated_Data\Managed\ModApi.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand Down
17 changes: 10 additions & 7 deletions EmpyrionAPIDefinitions/StatisticsTypeDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

namespace EmpyrionAPIDefinitions
{


public class StatisticsContainer
{
public StatisticsParam stats;
Expand Down Expand Up @@ -137,10 +135,10 @@ public PlayerDiedStatistics(StatisticsParam stats) : base(stats)
{
}
}

// StructOnOff, // int1: structure id, int2: changing entity id, int3: 0 = off, 1 = on


/// <summary>
/// StructOnOff,
/// </summary>
public class StructurePowerStatistics : StatisticsContainer
{
public Id StructureId
Expand Down Expand Up @@ -175,8 +173,10 @@ public StructurePowerStatistics(StatisticsParam stats) : base(stats)
}
}

// StructDestroyed,// int1: structure id, int2: type (0=wipe, 1=decay

/// <summary>
///
/// </summary>
public class StructureDestroyedStatistics : StatisticsContainer
{
public Id StructureId
Expand All @@ -187,6 +187,9 @@ public Id StructureId
}
}

/// <summary>
/// 0=wipe, 1=decay
/// </summary>
public StructureDestroyType DestroyType
{
get
Expand Down
7 changes: 4 additions & 3 deletions EmpyrionAPITools/EmpyrionAPITools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Mif">
<HintPath>..\dependencies\Mif.dll</HintPath>
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\DedicatedServer\EmpyrionDedicated_Data\Managed\Mif.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ModApi">
<HintPath>..\dependencies\ModApi.dll</HintPath>
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\DedicatedServer\EmpyrionDedicated_Data\Managed\ModApi.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RingResourceManager, Version=0.0.1.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down Expand Up @@ -94,11 +94,12 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="EmpyrionAPITools.nuspec" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
</Project>
48 changes: 48 additions & 0 deletions EmpyrionAPITools/EmpyrionAPITools.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>$id$</id>

<!-- When empty, this will be set at compile time to the [assembly:AssemblyProduct("")] attribute value -->
<title>Empyrion API Tools</title>

<!-- When empty, these will be set at compile time to either Thread.CurrentPrincipal.Identity.Name or Environment.UserName -->
<authors>https://github.com/lostinplace</authors>
<owners>lostinplace</owners>

<!-- Ignore, this will get updated at compile time -->
<version>$version$</version>

<!-- When empty, this will be set at compile time to the [assembly:AssemblyDescription("")] attribute value -->
<summary></summary>
<description>A library that makes it easier to write mods for Empyrion</description>

<!-- Set this to false if you don't need to support a license -->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<projectUrl>https://github.com/lostinplace/EmpyrionAPITools</projectUrl>
<repository type="git" url="https://github.com/lostinplace/EmpyrionAPITools" />
<releaseNotes></releaseNotes>
<tags>Empyrion Modding</tags>
<copyright>Copyright 2019</copyright>


<dependencies>
<!-- Ignore, all referenced NuGet packages will be added here at compile time -->
</dependencies>

<frameworkAssemblies>
<!-- This will get populated at compile time with any System.* references in the project -->
<!-- You will need to manually add any non-System.* assemblies here -->
</frameworkAssemblies>
</metadata>
<files>
<!-- This will automatically add the binary output of this project at compile time.
It will inject a file element like the following:
<file src="**\EmpyrionAPITools.*" target="lib/[targetFramework]" exclude="EmpyrionAPITools.*.CodeAnalysisLog.xml;EmpyrionAPITools.*.lastcodeanalysissucceeded;*Test*.*" />
The targetFramework value will be determined by the target framework of the project
-->

<!-- Add any additional files here manually -->
</files>
</package>
4 changes: 2 additions & 2 deletions EmpyrionAPITools/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.10.0.4")]
[assembly: AssemblyFileVersion("0.10.0.4")]
2 changes: 2 additions & 0 deletions EmpyrionAPITools/publish.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

nuget.exe push EmpyrionAPITools.0.*.*.*.nupkg -Source https://api.nuget.org/v3/index.json
2 changes: 1 addition & 1 deletion ExampleMod/ExampleMod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Mif">
<HintPath>..\dependencies\Mif.dll</HintPath>
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\DedicatedServer\EmpyrionDedicated_Data\Managed\Mif.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="ModApi">
Expand Down

0 comments on commit 339f029

Please sign in to comment.