Harmony & directory fix

This commit is contained in:
Arvkus 2020-07-27 23:21:07 +03:00
parent 4f0a452ab5
commit e0dffc19ed
4 changed files with 25 additions and 28 deletions

2
.vscode/launch.json vendored
View file

@ -10,8 +10,6 @@
"request": "launch", "request": "launch",
"preLaunchTask": "build dll", "preLaunchTask": "build dll",
"args": [], "args": [],
// [Windows] C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin64.exe
// [Linux]
"program": "../../RimWorldWin64.exe", "program": "../../RimWorldWin64.exe",
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"console": "internalConsole", "console": "internalConsole",

View file

@ -1,6 +1,6 @@
# Rimworld mod template # Rimworld Mod Template
This template is created for Rimworld modders who don't want to use Visual Studio Code Community IDE. This template is created for Rimworld moders who don't want to use Visual Studio Code Community IDE.
### Why Visual Studio Code? ### Why Visual Studio Code?

View file

@ -1,28 +1,24 @@
// ---------------------------------------------------------------------- using System;
// These are basic usings. Always let them be here.
// ----------------------------------------------------------------------
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
// ---------------------------------------------------------------------- using UnityEngine;
// These are RimWorld-specific usings. Activate/Deactivate what you need: using Verse;
// ---------------------------------------------------------------------- using Verse.AI;
using UnityEngine; // Always needed
using Verse; // RimWorld universal objects are here (like 'Building')
using Verse.AI; // Needed when you do something with the AI
using Verse.AI.Group; using Verse.AI.Group;
using Verse.Sound; // Needed when you do something with Sound using Verse.Sound;
using Verse.Noise; // Needed when you do something with Noises using Verse.Noise;
using RimWorld; // RimWorld specific functions are found here (like 'Building_Battery') using Verse.Grammar;
using RimWorld.Planet; // RimWorld specific functions for world creation using RimWorld;
using RimWorld.Planet;
//using System.Reflection;
//using HarmonyLib;
namespace Template namespace Template
{ {
[DefOf] [DefOf]
public class TemplateDefOf public class TemplateDefOf
{ {

View file

@ -4,7 +4,7 @@
<TargetFramework>net472</TargetFramework> <TargetFramework>net472</TargetFramework>
<PlatformTarget>x64</PlatformTarget> <PlatformTarget>x64</PlatformTarget>
<!-- Modify these 3 variables to your needs --> <!-- Modify [RootNamespace], [AssemblyName], [OutputPath] according to your needs -->
<RootNamespace>Template</RootNamespace> <RootNamespace>Template</RootNamespace>
<AssemblyName>Template</AssemblyName> <AssemblyName>Template</AssemblyName>
<OutputPath>../1.1/Assemblies</OutputPath> <OutputPath>../1.1/Assemblies</OutputPath>
@ -15,10 +15,13 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<!-- [Windows] C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\*.dll -->
<!-- [Linux] -->
<Reference Include="../../../RimWorldWin64_Data/Managed/*.dll"> <Reference Include="../../../RimWorldWin64_Data/Managed/*.dll">
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<!-- HARMONY!
<Reference Include="../../Harmony/v1.1/Assemblies/0Harmony.dll">
<Private>False</Private>
</Reference>
-->
</ItemGroup> </ItemGroup>
</Project> </Project>