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",
"preLaunchTask": "build dll",
"args": [],
// [Windows] C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin64.exe
// [Linux]
"program": "../../RimWorldWin64.exe",
"cwd": "${workspaceFolder}",
"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?

View file

@ -1,28 +1,24 @@
// ----------------------------------------------------------------------
// These are basic usings. Always let them be here.
// ----------------------------------------------------------------------
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
// ----------------------------------------------------------------------
// These are RimWorld-specific usings. Activate/Deactivate what you need:
// ----------------------------------------------------------------------
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 UnityEngine;
using Verse;
using Verse.AI;
using Verse.AI.Group;
using Verse.Sound; // Needed when you do something with Sound
using Verse.Noise; // Needed when you do something with Noises
using RimWorld; // RimWorld specific functions are found here (like 'Building_Battery')
using RimWorld.Planet; // RimWorld specific functions for world creation
using Verse.Sound;
using Verse.Noise;
using Verse.Grammar;
using RimWorld;
using RimWorld.Planet;
//using System.Reflection;
//using HarmonyLib;
namespace Template
{
[DefOf]
public class TemplateDefOf
{
@ -31,14 +27,14 @@ namespace Template
public class MyMapComponent : MapComponent
{
public MyMapComponent(Map map) : base(map)
public MyMapComponent(Map map) : base(map)
{
}
}
public override void FinalizeInit()
{
public override void FinalizeInit()
{
Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent);
Find.LetterStack.ReceiveLetter("Success", TemplateDefOf.success_letter.description, TemplateDefOf.success_letter, null);
}
Find.LetterStack.ReceiveLetter("Success", TemplateDefOf.success_letter.description, TemplateDefOf.success_letter, null);
}
}
}

View file

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