[HarmonyPostfix, HarmonyPatch(typeof(TreeNodeCtrl), "DeleteNode", new[] { typeof(TreeNodeObject) })] //know when objects are deleted public static void DeleteNode(ref TreeNodeCtrl _node) => HarmonyAdd.Counter(false);
public static void AddNodeName(ref TreeNodeObject __result) => HarmonyAdd.Counter(true); //know when objects are added