chore(release): prepare public source release
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>FixtureSupport</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>MercuryFixture.Support</RootNamespace>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
namespace MercuryFixture.Support;
|
||||
|
||||
public interface ILaunchable
|
||||
{
|
||||
}
|
||||
|
||||
public abstract class LaunchVehicleBase
|
||||
{
|
||||
public int QueueSize;
|
||||
protected int HiddenCounter;
|
||||
|
||||
public virtual string StartLaunch(int count)
|
||||
{
|
||||
HiddenCounter += count;
|
||||
return $"launch:{count}";
|
||||
}
|
||||
|
||||
protected void FinishLaunch()
|
||||
{
|
||||
HiddenCounter += 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\FixtureSupport\FixtureSupport.csproj" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>GameAssembly</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>Game</RootNamespace>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,65 @@
|
||||
using MercuryFixture.Support;
|
||||
|
||||
namespace Game.UI.Windows.Windows
|
||||
{
|
||||
public class SpaceCraftConstructionWindow : LaunchVehicleBase, ILaunchable
|
||||
{
|
||||
private int _buildTicks;
|
||||
private static int GlobalProjects;
|
||||
|
||||
public string ProjectName { get; private set; } = "Mercury";
|
||||
|
||||
internal int QueueDepth { get; set; }
|
||||
|
||||
public bool Completed => _buildTicks > 100;
|
||||
|
||||
public void StartProject(int units, string tag)
|
||||
{
|
||||
_buildTicks += units;
|
||||
ProjectName = tag;
|
||||
GlobalProjects += 1;
|
||||
}
|
||||
|
||||
private int FinishProject(bool instant)
|
||||
{
|
||||
if (instant)
|
||||
{
|
||||
_buildTicks = 999;
|
||||
}
|
||||
|
||||
return _buildTicks;
|
||||
}
|
||||
|
||||
public override string StartLaunch(int count)
|
||||
{
|
||||
return base.StartLaunch(count);
|
||||
}
|
||||
}
|
||||
|
||||
public class SpaceCraftProjectWindow
|
||||
{
|
||||
public void QueueVehicle()
|
||||
{
|
||||
}
|
||||
|
||||
internal void CancelProject()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class SpaceCraftInfoWindow
|
||||
{
|
||||
public int BuildProgress { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
namespace Data
|
||||
{
|
||||
public struct SpacecraftConstructData
|
||||
{
|
||||
public float buildTime;
|
||||
public float progress;
|
||||
|
||||
public string VehicleName { get; set; }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
not a managed assembly
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
namespace MissingOnly
|
||||
{
|
||||
public static class MissingMarker
|
||||
{
|
||||
public static void Touch()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>MissingOnly</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>MissingOnly</RootNamespace>
|
||||
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0.0</FileVersion>
|
||||
<Version>1.0.0</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,18 @@
|
||||
using HarmonyLib;
|
||||
using MissingOnly;
|
||||
using Rocket.Runtime;
|
||||
using TestOnlySupport;
|
||||
|
||||
namespace Rocket.Plugin
|
||||
{
|
||||
public sealed class PluginEntry
|
||||
{
|
||||
public string Run(string value)
|
||||
{
|
||||
CompileOnlyType.Touch();
|
||||
MissingMarker.Touch();
|
||||
TestMarker.Touch();
|
||||
return RuntimeFeature.RequiredMethod(value) + Harmony.VersionInfo();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>RootPlugin</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>Rocket.Plugin</RootNamespace>
|
||||
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0.0</FileVersion>
|
||||
<Version>1.0.0</Version>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="RuntimeDependency">
|
||||
<HintPath>..\..\diagnose-bin\compile\RuntimeDependency.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="0Harmony">
|
||||
<HintPath>..\..\diagnose-bin\compile\0Harmony.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="TestOnlySupport">
|
||||
<HintPath>..\..\diagnose-bin\compile\TestOnlySupport.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="MissingOnly">
|
||||
<HintPath>..\..\diagnose-bin\compile\MissingOnly.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>RuntimeDependency</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>Rocket.Runtime</RootNamespace>
|
||||
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0.0</FileVersion>
|
||||
<Version>1.0.0</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace Rocket.Runtime
|
||||
{
|
||||
public sealed class RuntimeFeature
|
||||
{
|
||||
public static string RequiredMethod(string value)
|
||||
{
|
||||
return "compile:" + value;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class CompileOnlyType
|
||||
{
|
||||
public static void Touch()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>RuntimeDependency</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>Rocket.Runtime</RootNamespace>
|
||||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||||
<FileVersion>2.0.0.0</FileVersion>
|
||||
<Version>2.0.0</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Rocket.Runtime
|
||||
{
|
||||
public sealed class RuntimeFeature
|
||||
{
|
||||
public static string ReplacementOnly(string value)
|
||||
{
|
||||
return "server:" + value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace TestOnlySupport
|
||||
{
|
||||
public static class TestMarker
|
||||
{
|
||||
public static void Touch()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>TestOnlySupport</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>TestOnlySupport</RootNamespace>
|
||||
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0.0</FileVersion>
|
||||
<Version>1.0.0</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace HarmonyLib
|
||||
{
|
||||
public static class Harmony
|
||||
{
|
||||
public static string VersionInfo()
|
||||
{
|
||||
return "2.2.2";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>disable</Nullable>
|
||||
<AssemblyName>0Harmony</AssemblyName>
|
||||
<DebugType>none</DebugType>
|
||||
<RootNamespace>HarmonyLib</RootNamespace>
|
||||
<AssemblyVersion>2.2.2.0</AssemblyVersion>
|
||||
<FileVersion>2.2.2.0</FileVersion>
|
||||
<Version>2.2.2</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user