This commit is contained in:
Arvkus 2020-09-11 17:03:06 +03:00
parent ed08916c7a
commit bda97f3c26
8 changed files with 25 additions and 10 deletions

4
.gitignore vendored
View file

@ -1,6 +1,6 @@
/Source/obj
/.vscode/obj /.vscode/obj
# /*/Assemblies # /*/Assemblies
# /Source # /*/Assemblies/*.pdb
# /.vscode # /.vscode
# /Source

2
.vscode/build.bat vendored
View file

@ -1,7 +1,7 @@
echo off echo off
REM remove unnecessary assemblies REM remove unnecessary assemblies
REM DEL .\*\Assemblies\*.* DEL .\*\Assemblies\*.*
REM build dll REM build dll
dotnet build .vscode dotnet build .vscode

4
.vscode/mod.csproj vendored
View file

@ -10,7 +10,7 @@
<OutputPath>../1.2/Assemblies</OutputPath> <OutputPath>../1.2/Assemblies</OutputPath>
<VersionPrefix>1.0.0.0</VersionPrefix> <VersionPrefix>1.0.0.0</VersionPrefix>
<!-- pdb file generation --> <!-- do not generate pdb file -->
<DebugType>none</DebugType> <DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols> <DebugSymbols>false</DebugSymbols>
@ -19,7 +19,7 @@
<ItemGroup> <ItemGroup>
<!-- Mod --> <!-- Mod -->
<CodeFiles Include="../Source/*" /> <Compile Include="../Source/*" />
<!-- Rimworld --> <!-- Rimworld -->
<Reference Include="../../../RimWorldWin64_Data/Managed/*.dll"> <Reference Include="../../../RimWorldWin64_Data/Managed/*.dll">

4
.vscode/tasks.json vendored
View file

@ -8,8 +8,8 @@
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
}, },
// "command": ".vscode/build.bat", "command": ".vscode/build.bat",
"command": "dotnet build .vscode" // "command": "dotnet build .vscode"
}, },
] ]
} }

Binary file not shown.

View file

@ -1,10 +1,24 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ModMetaData> <ModMetaData>
<packageId>arvkus.template</packageId>
<name>Arvkus Mod Template</name> <name>Arvkus Mod Template</name>
<author>Arvkus</author> <author>Arvkus</author>
<supportedVersions> <supportedVersions>
<li>1.2</li> <li>1.2</li>
</supportedVersions> </supportedVersions>
<packageId>Arvkus.Rimworld.ModTemplate2</packageId>
<modDependencies>
<!-- <li>
<packageId>brrainz.harmony</packageId>
<displayName>Harmony</displayName>
<downloadUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</downloadUrl>
<steamWorkshopUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</steamWorkshopUrl>
</li> -->
</modDependencies>
<incompatibleWith>
<!-- <li>arvkus.template</li> -->
</incompatibleWith>
<description>Template</description> <description>Template</description>
</ModMetaData> </ModMetaData>

View file

@ -14,6 +14,7 @@ This template is created for Rimworld moders who use [Visual Studio Code](https:
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.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.
2. Instal [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp). 2. Instal [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.
4. Modify `.vscode/mod.scproj` and `About/About.xml` files.
## 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.

View file

@ -38,9 +38,9 @@ namespace Template
[StaticConstructorOnStartup] [StaticConstructorOnStartup]
public static class Start public static class Start
{ {
static Start() // quick debug static Start()
{ {
Log.Message("Mod init"); Log.Message("Mod template loaded successfully!");
} }
} }