/// <summary> /// Initializes a new instance of the <see cref="ContextMenuOpenedArgs"/> class. /// </summary> /// <param name="addon">The addon associated with the context menu.</param> /// <param name="agent">The agent associated with the context menu.</param> /// <param name="parentAddonName">The the name of the parent addon associated with the context menu.</param> /// <param name="items">The items in the context menu.</param> public ContextMenuOpenedArgs(AddonContextMenu *addon, AgentContextInterface *agent, string?parentAddonName, IEnumerable <ContextMenuItem> items) { this.Addon = addon; this.Agent = agent; this.ParentAddonName = parentAddonName; this.Items = new List <ContextMenuItem>(items); }
/// <summary> /// Initializes a new instance of the <see cref="ContextMenuReaderWriter"/> class. /// </summary> /// <param name="agentContextInterface">The AgentContextInterface to act upon.</param> /// <param name="atkValueCount">The number of ATK values to consider.</param> /// <param name="atkValues">Pointer to the array of ATK values.</param> public ContextMenuReaderWriter(AgentContextInterface *agentContextInterface, int atkValueCount, AtkValue *atkValues) { PluginLog.Warning($"{(IntPtr)atkValues:X}"); this.agentContextInterface = agentContextInterface; this.atkValueCount = atkValueCount; this.atkValues = atkValues; }