-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fe87b8
commit d81f705
Showing
10 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.6.33815.320 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FTT", "FTTProject\FTT.csproj", "{42B7B346-2964-47BD-98C0-1C3AECC98D0D}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{42B7B346-2964-47BD-98C0-1C3AECC98D0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{42B7B346-2964-47BD-98C0-1C3AECC98D0D}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{42B7B346-2964-47BD-98C0-1C3AECC98D0D}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{42B7B346-2964-47BD-98C0-1C3AECC98D0D}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"mod_id": "FTT", | ||
"author": "cvusmo", | ||
"name": "FTT", | ||
"description": "Fancy Fuel Tanks", | ||
"source": "https://github.com/cvusmo/FTT", | ||
"version": "0.1.0", | ||
"version_check": "", | ||
"dependencies": [ | ||
{ | ||
"id": "SpaceWarp", | ||
"version": { | ||
"min": "1.1.1", | ||
"max": "*" | ||
} | ||
} | ||
], | ||
"ksp2_version": { | ||
"min": "0.1.0", | ||
"max": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>true</ImplicitUsings> | ||
<AssemblyName>FTT</AssemblyName> | ||
<Product>FTT</Product> | ||
<Description>Fancy Fuel Tanks</Description> | ||
<Version>0.1.0</Version> | ||
<RestoreAdditionalProjectSources> | ||
https://nuget.spacewarp.org/v3/index.json | ||
</RestoreAdditionalProjectSources> | ||
<RootNamespace>FTT</RootNamespace> | ||
<ModId Condition="'$(ModId)'==''">FTT</ModId> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" /> | ||
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.0" PrivateAssets="all" /> | ||
<PackageReference Include="BepInEx.Core" Version="5.*" /> | ||
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.*" /> | ||
<PackageReference Include="HarmonyX" Version="2.10.1" /> | ||
<PackageReference Include="SpaceWarp" Version="1.1.1" /> | ||
<PackageReference Include="UnityEngine.Modules" Version="2020.3.33" IncludeAssets="compile" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Reference Include="Assembly-CSharp"> | ||
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program 2\KSP2_x64_Data\Managed\Assembly-CSharp.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> | ||
<Exec Command="rm -rf "$(ProjectDir)..\$(ConfigurationName)\"
echo d | xcopy /y /s "$(ProjectDir)..\$(ModId)\" "$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\"
echo f | xcopy /y "$(TargetPath)" "$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\$(ModId).dll"
if $(ConfigurationName) == Debug echo f | xcopy /y "$(TargetDir)$(TargetName).pdb" "$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\$(ModId).pdb"
xcopy /y "$(ProjectDir)..\LICENSE" "$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\"
echo f | xcopy /y "$(ProjectDir)..\README.md" "$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\README.txt"" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using BepInEx; | ||
using HarmonyLib; | ||
using KSP.UI.Binding; | ||
using SpaceWarp; | ||
using SpaceWarp.API.Assets; | ||
using SpaceWarp.API.Mods; | ||
using SpaceWarp.API.Game; | ||
using SpaceWarp.API.Game.Extensions; | ||
using SpaceWarp.API.UI; | ||
using SpaceWarp.API.UI.Appbar; | ||
using UnityEngine; | ||
|
||
namespace FTT; | ||
|
||
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)] | ||
[BepInDependency(SpaceWarpPlugin.ModGuid, SpaceWarpPlugin.ModVer)] | ||
public class FTTPlugin : BaseSpaceWarpPlugin | ||
{ | ||
public const string ModGuid = MyPluginInfo.PLUGIN_GUID; | ||
public const string ModName = MyPluginInfo.PLUGIN_NAME; | ||
public const string ModVer = MyPluginInfo.PLUGIN_VERSION; | ||
|
||
|
||
public static FTTPlugin Instance { get; set; } | ||
|
||
public override void OnInitialized() | ||
{ | ||
base.OnInitialized(); | ||
|
||
Instance = this; | ||
|
||
Harmony.CreateAndPatchAll(typeof(FTTPlugin).Assembly); | ||
|
||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT YOUR LICENSE HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# FTT | ||
Fancy Fuel Tanks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
dotnet build FTT.sln -c Debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
dotnet build FTT.sln -c Release |
Empty file.