-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
15d661c
commit 1fce8fc
Showing
19 changed files
with
488 additions
and
625 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 |
---|---|---|
@@ -1,40 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<ModMetaData> | ||
<name>Backup Power</name> | ||
<author>Fluffy</author> | ||
<supportedVersions> | ||
<li>1.2</li> | ||
</supportedVersions> | ||
<description>add control units to generators to automatically switch them on and off when needed | ||
|
||
<size=24>Features</size> | ||
Adds generator control boxes, which will automatically turn the generators they are attached to on and off depending on current power levels. | ||
|
||
Control boxes can be built after researching <i>Backup Power</i>, a follow-up to <i>Microelectronics</i>. Once researched, build a power control box on top of any generator to have it automatically toggled on/off depending on the electrical grid’s supply and demand. | ||
<name>Backup Power</name> | ||
<author>Fluffy</author> | ||
<packageId>Fluffy.BackupPower</packageId> | ||
<description>add control units to generators to automatically switch them on and off when needed | ||
|
||
Should work on any power generator that has the ‘flickable’ tag, so any vanilla or modded power producer that can be toggled on and off. | ||
|
||
Control boxes have an indicator light that can take three colours: | ||
<size=28>Features</size> | ||
|
||
Adds generator control boxes, which will automatically turn the generators they are attached to on and off depending on current power levels. | ||
|
||
blue: control box is in standby, the generator is not currently needed. | ||
green: control box is active, the generator is running. | ||
red: control box error, the generator can not run. | ||
Control boxes can be built after researching <i>Backup Power</i>, a follow-up to <i>Microelectronics</i>. Once researched, build a power control box on top of any generator to have it automatically toggled on/off depending on the electrical grid's supply and demand. | ||
|
||
<size=24>Known Issues</size> | ||
None (yet). | ||
Should work on any power generator that has the 'flickable' tag, so any vanilla or modded power producer that can be toggled on and off. | ||
|
||
<size=24>Contributors</size> | ||
Control boxes have an indicator light that can take three colours: | ||
|
||
Cenbes: Control box texture | ||
- blue: control box is in standby, the generator is not currently needed. | ||
- green: control box is active, the generator is running. | ||
- red: control box error, the generator can not run. | ||
|
||
<size=24>Version</size> | ||
This is version 1.10.180, for RimWorld 1.2.2753. | ||
<size=28>Known Issues</size> | ||
|
||
</description> | ||
<url>https://ludeon.com/forums/index.php?topic=16120</url> | ||
<packageId>fluffy.backuppower</packageId> | ||
<loadAfter> | ||
<li>Ludeon.RimWorld</li> | ||
</loadAfter> | ||
None (yet).</description> | ||
<url>https://github.com/fluffy-mods/BackupPower</url> | ||
<supportedVersions> | ||
<li>1.3</li> | ||
</supportedVersions> | ||
<loadAfter> | ||
<li>Ludeon.RimWorld</li> | ||
</loadAfter> | ||
</ModMetaData> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
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 |
---|---|---|
@@ -1,30 +1,25 @@ | ||
// BackupPower.cs | ||
// BackupPower.cs | ||
// Copyright Karel Kroeze, 2020-2020 | ||
|
||
using UnityEngine; | ||
using Verse; | ||
|
||
namespace BackupPower | ||
{ | ||
public class BackupPower : Mod | ||
{ | ||
public BackupPower( ModContentPack content ) : base( content ) | ||
{ | ||
namespace BackupPower { | ||
public class BackupPower: Mod { | ||
public BackupPower(ModContentPack content) : base(content) { | ||
// initialize settings | ||
Settings = GetSettings<Settings>(); | ||
} | ||
|
||
public static Settings Settings { get; private set; } | ||
|
||
public override void DoSettingsWindowContents( Rect inRect ) | ||
{ | ||
base.DoSettingsWindowContents( inRect ); | ||
GetSettings<Settings>().DoWindowContents( inRect ); | ||
public override void DoSettingsWindowContents(Rect inRect) { | ||
base.DoSettingsWindowContents(inRect); | ||
GetSettings<Settings>().DoWindowContents(inRect); | ||
} | ||
|
||
public override string SettingsCategory() | ||
{ | ||
public override string SettingsCategory() { | ||
return I18n.BackupPower; | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,87 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{D7D21B4A-1DA7-41D8-B202-C58CA8FA62AA}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>BackupPower</RootNamespace> | ||
<AssemblyName>BackupPower</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
<AllowedReferenceRelatedFileExtensions>None</AllowedReferenceRelatedFileExtensions> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>..\Assemblies\</OutputPath> | ||
<DefineConstants>DEBUG</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<LangVersion>8</LangVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>..\Assemblies\</OutputPath> | ||
<DefineConstants> | ||
</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<LangVersion>8</LangVersion> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Assembly-CSharp"> | ||
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" /> | ||
<Reference Include="UnityEngine.CoreModule"> | ||
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.IMGUIModule"> | ||
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.InputLegacyModule"> | ||
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.TextRenderingModule"> | ||
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath> | ||
<Private>False</Private> | ||
</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" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="BackupPower.cs" /> | ||
<Compile Include="Building_BackupPowerAttachment.cs" /> | ||
<Compile Include="Command_BatteryRange.cs" /> | ||
<Compile Include="DebugLog.cs" /> | ||
<Compile Include="I18n.cs" /> | ||
<Compile Include="MapComponent_PowerBroker.cs" /> | ||
<Compile Include="PlaceWorker_OnFlickablePowerPlant.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Resources.cs" /> | ||
<Compile Include="Settings.cs" /> | ||
<Compile Include="Utilities.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PostBuildEvent>mod update -x</PostBuildEvent> | ||
</PropertyGroup> | ||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net472</TargetFramework> | ||
<AssemblyTitle>BackupPower</AssemblyTitle> | ||
<Product>BackupPower</Product> | ||
<Copyright>Copyright © 2020-2021</Copyright> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<OutputPath>..\Assemblies\</OutputPath> | ||
<LangVersion>8</LangVersion> | ||
<PostBuildEvent>mod update</PostBuildEvent> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3076" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.