Compare commits
10 commits
eb14290210
...
dce259ecf8
Author | SHA1 | Date | |
---|---|---|---|
|
dce259ecf8 | ||
|
188f53668f | ||
|
4c1e54857e | ||
|
e8fa57afda | ||
|
0cf7e9fb76 | ||
|
eba8fa8bef | ||
|
3f5ceb38be | ||
|
cffd160ba1 | ||
|
49b959b957 | ||
|
848caedff1 |
10 changed files with 22 additions and 30 deletions
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ms-dotnettools.csharp"
|
||||||
|
]
|
||||||
|
}
|
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
|
@ -15,20 +15,6 @@
|
||||||
"console": "internalConsole",
|
"console": "internalConsole",
|
||||||
"internalConsoleOptions":"neverOpen",
|
"internalConsoleOptions":"neverOpen",
|
||||||
"stopAtEntry": true
|
"stopAtEntry": true
|
||||||
},
|
|
||||||
|
|
||||||
{ // ignore
|
|
||||||
"name": ".NET Framework Attach",
|
|
||||||
"type": "clr",
|
|
||||||
"request": "attach",
|
|
||||||
"processId": "${command:pickProcess}",
|
|
||||||
"symbolOptions": {
|
|
||||||
"searchPaths": [
|
|
||||||
".vscode/obj/Debug/*"
|
|
||||||
],
|
|
||||||
"searchMicrosoftSymbolServer": false,
|
|
||||||
"searchNuGetOrgSymbolServer": false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
8
.vscode/mod.csproj
vendored
8
.vscode/mod.csproj
vendored
|
@ -1,14 +1,14 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net480</TargetFramework>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
|
||||||
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
|
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
|
||||||
<RootNamespace>Template</RootNamespace>
|
<RootNamespace>Template</RootNamespace>
|
||||||
<AssemblyName>Template</AssemblyName>
|
<AssemblyName>Template</AssemblyName>
|
||||||
<OutputPath>../1.2/Assemblies</OutputPath>
|
<OutputPath>../1.4/Assemblies</OutputPath>
|
||||||
<VersionPrefix>1.0.0.0</VersionPrefix>
|
<VersionPrefix>0.1.0.0</VersionPrefix>
|
||||||
|
|
||||||
<!-- do not generate pdb file -->
|
<!-- do not generate pdb file -->
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
||||||
<!-- Harmony -->
|
<!-- Harmony -->
|
||||||
<!-- <Reference Include="../../Harmony/v1.1/Assemblies/0Harmony.dll">
|
<!-- <Reference Include="../../Harmony/Current/Assemblies/0Harmony.dll">
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference> -->
|
</Reference> -->
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
Binary file not shown.
|
@ -1,23 +1,23 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<ModMetaData>
|
<ModMetaData>
|
||||||
<packageId>arvkus.template</packageId>
|
<packageId>username.modname</packageId>
|
||||||
<name>Arvkus Mod Template</name>
|
<name>Mod Template</name>
|
||||||
<author>Arvkus</author>
|
<author>username</author>
|
||||||
<supportedVersions>
|
<supportedVersions>
|
||||||
<li>1.2</li>
|
<li>1.4</li>
|
||||||
</supportedVersions>
|
</supportedVersions>
|
||||||
|
|
||||||
<modDependencies>
|
<modDependencies>
|
||||||
<!-- <li>
|
<!-- <li>
|
||||||
<packageId>brrainz.harmony</packageId>
|
<packageId>brrainz.harmony</packageId>
|
||||||
<displayName>Harmony</displayName>
|
<displayName>Harmony</displayName>
|
||||||
<downloadUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</downloadUrl>
|
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
|
||||||
<steamWorkshopUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</steamWorkshopUrl>
|
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
|
||||||
</li> -->
|
</li> -->
|
||||||
</modDependencies>
|
</modDependencies>
|
||||||
|
|
||||||
<incompatibleWith>
|
<incompatibleWith>
|
||||||
<!-- <li>arvkus.template</li> -->
|
<!-- <li>username.modname</li> -->
|
||||||
</incompatibleWith>
|
</incompatibleWith>
|
||||||
|
|
||||||
<description>Template</description>
|
<description>Template</description>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Rimworld Mod Template
|
# Rimworld Mod Template
|
||||||
|
|
||||||
This template is created for Rimworld moders who use [Visual Studio Code](https://code.visualstudio.com/) instead of Visual Studio IDE.
|
This template is created for Rimworld modders who use [Visual Studio Code](https://code.visualstudio.com/) instead of Visual Studio IDE.
|
||||||
|
|
||||||
* __No virtual folders__. Easy to manage and edit both `xml` and `cs` files.
|
* __No virtual folders__. Easy to manage and edit both `xml` and `cs` files.
|
||||||
|
|
||||||
|
@ -11,12 +11,13 @@ This template is created for Rimworld moders who use [Visual Studio Code](https:
|
||||||
* __Customizable__. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure.
|
* __Customizable__. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
1. Download and install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) and [.Net Framework 4.7.2 Developer Pack]( https://dotnet.microsoft.com/download/dotnet-framework/net472). This step can be skipped if you already have required C# packages from Visual Studio IDE.
|
1. Download and install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) and [.Net Framework 4.8 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net48). This step can be skipped if you already have required C# packages from Visual Studio IDE.
|
||||||
2. Instal [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
|
2. Install [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
|
||||||
3. Clone, pull or download this template into your Rimworld `Mods` folder.
|
3. Clone, pull or download this template into your Rimworld `Mods` folder.
|
||||||
|
|
||||||
## Additional notes
|
## Additional notes
|
||||||
* By pressing `F5` key VS Code will perform 2 operations: build assembly file and launch Rimworld executable.
|
* By pressing `F5` key VS Code will perform 2 operations: build assembly file and launch Rimworld executable.
|
||||||
* All intermediate files are kept inside `.vscode` folder.
|
* All intermediate files are kept inside `.vscode` folder.
|
||||||
|
* For XML only modders remove preLaunchTask line from `.vscode/launch.json` file.
|
||||||
* Modify `.vscode/mod.csproj` and `About/About.xml` according to your needs.
|
* Modify `.vscode/mod.csproj` and `About/About.xml` according to your needs.
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ using Verse.Grammar;
|
||||||
using RimWorld;
|
using RimWorld;
|
||||||
using RimWorld.Planet;
|
using RimWorld.Planet;
|
||||||
|
|
||||||
//using System.Reflection;
|
// using System.Reflection;
|
||||||
//using HarmonyLib;
|
// using HarmonyLib;
|
||||||
|
|
||||||
namespace Template
|
namespace Template
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue