Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksheepcosmo committed Jul 16, 2023
1 parent 5fe87b8 commit d81f705
Show file tree
Hide file tree
Showing 10 changed files with 123 additions and 0 deletions.
22 changes: 22 additions & 0 deletions FTT.sln
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
Binary file added FTT/assets/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions FTT/swinfo.json
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": "*"
}
}
35 changes: 35 additions & 0 deletions FTTProject/FTT.csproj
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 &quot;$(ProjectDir)..\$(ConfigurationName)\&quot;&#xA;echo d | xcopy /y /s &quot;$(ProjectDir)..\$(ModId)\&quot; &quot;$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\&quot;&#xA;echo f | xcopy /y &quot;$(TargetPath)&quot; &quot;$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\$(ModId).dll&quot;&#xA;if $(ConfigurationName) == Debug echo f | xcopy /y &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\$(ModId).pdb&quot;&#xA;xcopy /y &quot;$(ProjectDir)..\LICENSE&quot; &quot;$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\&quot;&#xA;echo f | xcopy /y &quot;$(ProjectDir)..\README.md&quot; &quot;$(ProjectDir)..\$(ConfigurationName)\BepInEx\plugins\$(ModId)\README.txt&quot;" />
</Target>
</Project>
37 changes: 37 additions & 0 deletions FTTProject/FTTPlugin.cs
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);


}

}
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INSERT YOUR LICENSE HERE
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# FTT
Fancy Fuel Tanks
2 changes: 2 additions & 0 deletions build-debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
dotnet build FTT.sln -c Debug
2 changes: 2 additions & 0 deletions build-release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
dotnet build FTT.sln -c Release
Empty file.

0 comments on commit d81f705

Please sign in to comment.