public override bool Initialize(IPluginHost host) { //System.Diagnostics.Debugger.Launch(); if (this.host != null) { Terminate(); } if (host == null) { throw new ArgumentNullException(nameof(host)); } this.host = host; Settings = host.Settings; // Register the InfoReader reader = new FrostBiteNodeInfoReader(); host.RegisterNodeInfoReader(reader); // Register the WeakPtr node converter = new WeakPtrNodeConverter(); generator = new WeakPtrCodeGenerator(); host.RegisterNodeType(typeof(WeakPtrNode), "Frostbite WeakPtr", Icon, converter, generator); return(true); }
/// <summary>This method gets called when ReClass.NET loads the plugin.</summary> public override bool Initialize(IPluginHost host) { this.host = host; // Notfiy the plugin if a window is shown. GlobalWindowManager.WindowAdded += OnWindowAdded; // Register a node info reader to display custom data on nodes. reader = new SampleNodeInfoReader(); host.RegisterNodeInfoReader(reader); return(true); }
public void DeregisterNodeInfoReader(INodeInfoReader reader) { BaseNode.NodeInfoReader.Remove(reader); }
public void RegisterNodeInfoReader(INodeInfoReader reader) { BaseNode.NodeInfoReader.Add(reader); }
public void DeregisterNodeInfoReader(INodeInfoReader reader) { Contract.Requires(reader != null); throw new NotImplementedException(); }