-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b7e3df
commit ddefeb5
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
NodeController/Patches/NetManager/UpdateNodeSegmentPatch.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#if DEBUG | ||
namespace NodeController.Patches._NetManager; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using HarmonyLib; | ||
using KianCommons; | ||
using KianCommons.Patches; | ||
|
||
//[HarmonyPatch2(typeof(NetManager), typeof(UpdateNode))] | ||
static class UpdateNodePatch { | ||
delegate void UpdateNode(ushort node, ushort fromSegment, int level); | ||
static void Prefix(ushort node, ushort fromSegment, int level) { | ||
Log.Called("node:" + node, "fromSegment:" + fromSegment, "level:" + level); | ||
Log.Stack(); | ||
} | ||
} | ||
|
||
//[HarmonyPatch2(typeof(NetManager), typeof(UpdateSegment))] | ||
static class UpdateSegmentPatch { | ||
delegate void UpdateSegment(ushort segment); | ||
static void Prefix(ushort segment) { | ||
Log.Called("segment:" + segment); | ||
Log.Stack(); | ||
} | ||
} | ||
#endif |