Skip to content

Commit

Permalink
transpiling
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoNeko committed Apr 30, 2020
1 parent 76d49da commit 05f211e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ public static void Postfix(ref bool __result)
[HarmonyPatch("AddPathEndpoint")]
public static class Patch_WorldLayer_Paths_AddPathEndpoint
{
[HarmonyTranspiler]
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
RoadsOfTheRim.DebugLog("RotR - TRANSPILING");
Expand Down Expand Up @@ -434,6 +435,8 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> inst
[HarmonyPatch("Regenerate")]
public static class Patch_WorldLayer_Roads_Regenerate
{
/*
[HarmonyTranspiler]
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
var codes = new List<CodeInstruction>(instructions);
Expand All @@ -443,5 +446,11 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> inst
}
return instructions;
}
*/
[HarmonyPostfix]
public static void Postfix()
{
RoadsOfTheRim.DebugLog("I'm postfixing WorldLayer_Roads.Regenerate()");
}
}
}
Binary file modified v1.1/Assemblies/RoadsOfTheRim.dll
Binary file not shown.

0 comments on commit 05f211e

Please sign in to comment.