Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

# Created by https://www.gitignore.io/api/visualstudio

# Ignore plugin artifacts in GameData
/GameData/DynamicBatteryStorage/Plugins

### VisualStudio ###
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
Expand Down Expand Up @@ -342,3 +345,7 @@ tmp/
deploy/
build_scripts/version.txt
build_scripts/changelog.md

# KSPBuildTools / SDK-style build
/*.props.user
*.binlog
7 changes: 7 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectRootDir>$(MSBuildThisFileDirectory)</ProjectRootDir>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions DynamicBatteryStorage.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Solution>
<Project Path="Source/DynamicBatteryStorage/DynamicBatteryStorage.csproj" />
</Solution>
Binary file modified GameData/DynamicBatteryStorage/Plugins/DynamicBatteryStorage.dll
Binary file not shown.
162 changes: 26 additions & 136 deletions Source/DynamicBatteryStorage/DynamicBatteryStorage.csproj
Original file line number Diff line number Diff line change
@@ -1,142 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0EFDFAF4-E57B-452E-BF93-E404C00B74DC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DynamicBatteryStorage</RootNamespace>
<Version>2.3.7</Version>
<AssemblyName>DynamicBatteryStorage</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\GameData\DynamicBatteryStorage\Plugins\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<RootNamespace>DynamicBatteryStorage</RootNamespace>
<TargetFramework>net481</TargetFramework>

<FileVersion>$(Version)</FileVersion>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyInformationalVersion>$(Version)</AssemblyInformationalVersion>

<KSPBT_ModRoot>$(ProjectRootDir)GameData\DynamicBatteryStorage</KSPBT_ModRoot>
<KSPBT_ModPluginFolder>Plugins</KSPBT_ModPluginFolder>

<DebugType>portable</DebugType>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>CS1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\..\..\Games\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AnimationModule">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.AnimationModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AssetBundleModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputModule">
<HintPath>..\..\..\..\..\..\..\Games\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.InputModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.UIModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Data\VABVesselDataManager.cs" />
<Compile Include="Data\VesselData.cs" />
<Compile Include="Data\VesselDataManager.cs" />
<Compile Include="Data\VesselElectricalData.cs" />
<Compile Include="DynamicBatteryStorage.cs" />
<Compile Include="FormatUtils.cs" />
<Compile Include="HandlerConfiguration.cs" />
<Compile Include="HandlerModuleData.cs" />
<Compile Include="Handlers\GenericFieldDataHandler.cs" />
<Compile Include="Handlers\ModuleDataHandler.cs" />
<Compile Include="Handlers\KopernicusPowerHandlers.cs" />
<Compile Include="Handlers\PostKerbin\DischargeCapacitorPowerHandler.cs" />
<Compile Include="Handlers\PostKerbin\FissionGeneratorPowerHandler.cs" />
<Compile Include="Handlers\PostKerbin\ModuleChargeableEnginePowerHandler.cs" />
<Compile Include="Handlers\PostKerbin\ModuleCryoTankPowerHandler.cs" />
<Compile Include="Handlers\PostKerbin\ModuleCurvedSolarPanelPowerHandler.cs" />
<Compile Include="Handlers\PostKerbin\ModuleDeployableCentrifugePowerHandler.cs" />
<Compile Include="Handlers\RealBatteryPowerHandlers.cs" />
<Compile Include="Handlers\RemoteTechPowerHandler.cs" />
<Compile Include="Handlers\ScanSatPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleActiveRadiatorPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleAlternatorPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleCommandPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleDataTransmitterPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleDeployableSolarPanelPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleEnginesPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleGeneratorPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleLightPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleResourceConverterPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleResourceHarvesterPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleScienceConverterPowerHandler.cs" />
<Compile Include="Handlers\Stock\ModuleScienceLabPowerHandler.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings.cs" />
<Compile Include="UI\SystemsMonitorUI.cs" />
<Compile Include="UI\SystemsMonitorAssets.cs" />
<Compile Include="UI\ToolbarAdvanced.cs" />
<Compile Include="UI\ToolbarDetailCategory.cs" />
<Compile Include="UI\ToolbarDetailPanel.cs" />
<Compile Include="UI\ToolbarDetailPart.cs" />
<Compile Include="UI\ToolbarIconTag.cs" />
<Compile Include="UI\ToolbarPanel.cs" />
<Compile Include="UI\ToolbarPower.cs" />
<Compile Include="UI\ToolbarSituation.cs" />
<Compile Include="UI\Tooltips.cs" />
<Compile Include="Utils.cs" />
<Compile Include="Handlers\WDSPPowerHandlers.cs" />
<PackageReference Include="KSPBuildTools" Version="1.1.1" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Compile Include="UI\UIHandlerCategory.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">

<Target Name="CopyExtrasToPluginFolder" AfterTargets="KSPBT_CopyDLLsToPluginFolder">
<ItemGroup>
<_ExtrasToCopy Include="$(TargetDir)/**/*.pdb" />
<_ExtrasToCopy Include="$(TargetDir)/**/*.xml" />
</ItemGroup>

<Copy SourceFiles="@(_ExtrasToCopy)" DestinationFolder="$(KSPBT_ModRoot)/$(KSPBT_ModPluginFolder)/%(RecursiveDir)" />
</Target>
-->
</Project>
</Project>
36 changes: 0 additions & 36 deletions Source/DynamicBatteryStorage/Properties/AssemblyInfo.cs

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 0 additions & 20 deletions Source/PowerMonitor.sln

This file was deleted.

Binary file removed Source/PowerMonitor.suo
Binary file not shown.
Loading