@@ -47,6 +47,7 @@ private void Awake()
4747 new FindPathPatch ( ) . Enable ( ) ;
4848 new GroupPointCachePatch ( ) . Enable ( ) ;
4949 new BotVoxelesPersonalActivatePatch ( ) . Enable ( ) ;
50+ new GroupPointGetByIdPatch ( ) . Enable ( ) ;
5051
5152 // Debug perf timing output
5253 //new PerfTimingPatch().Enable();
@@ -64,23 +65,21 @@ public class PerfTimingPatch
6465
6566 public void Enable ( )
6667 {
67- Logger . LogInfo ( $ "Patching in { Assembly . GetExecutingAssembly ( ) } ") ;
68-
6968 var harmony = new Harmony ( "xyz.drakia.waypoints" ) ;
7069
71- var props = AccessTools . GetDeclaredProperties ( typeof ( BotOwner ) ) ;
72- foreach ( var prop in props )
73- {
74- var method = prop . PropertyType . GetMethod ( "Activate" ) ;
75- if ( method != null && ! method . IsAbstract )
76- {
77- Logger . LogInfo ( $ "Adding timing to { prop . PropertyType . Name } ::{ method . Name } ") ;
78- var target = method ;
79- var prefix = new HarmonyMethod ( typeof ( PerfTimingPatch ) . GetMethod ( "PatchPrefix" ) ) ;
80- var postfix = new HarmonyMethod ( typeof ( PerfTimingPatch ) . GetMethod ( "PatchPostfix" ) ) ;
81- harmony . Patch ( target , prefix , postfix ) ;
82- }
83- }
70+ // var props = AccessTools.GetDeclaredProperties(typeof(BotOwner));
71+ // foreach (var prop in props)
72+ // {
73+ // var method = prop.PropertyType.GetMethod("Activate");
74+ // if (method != null && !method.IsAbstract)
75+ // {
76+ // Logger.LogInfo($"Adding timing to {prop.PropertyType.Name}::{method.Name}");
77+ // var target = method;
78+ // var prefix = new HarmonyMethod(typeof(PerfTimingPatch).GetMethod("PatchPrefix"));
79+ // var postfix = new HarmonyMethod(typeof(PerfTimingPatch).GetMethod("PatchPostfix"));
80+ // harmony.Patch(target, prefix, postfix);
81+ // }
82+ // }
8483
8584 // Time the overall activate method
8685 {
0 commit comments