public static NetworkInterfaceResponse HandleNetworkCommand(Player player, NetworkInterfaceCommand nic)
        {
            QuantumOutputPortMachine target = nic.target as QuantumOutputPortMachine;

            switch (nic.command)
            {
            case "SetExemplar":
                QuantumOutputPortWindow.SetExemplar(player, target, nic.itemContext);
                break;
            }

            NetworkInterfaceResponse interfaceResponse = new NetworkInterfaceResponse();

            interfaceResponse.entity    = (SegmentEntity)target;
            interfaceResponse.inventory = player.mInventory;
            return(interfaceResponse);
        }
        public override bool ButtonRightClicked(string name, SegmentEntity targetEntity)
        {
            utils.LogUtils.LogDebug("QuantumOutputPortWindow", "ButtonClicked name: " + name);
            if (name != OutputItemIcon)
            {
                return(base.ButtonRightClicked(name, targetEntity));
            }

            QuantumOutputPortMachine outputPort = targetEntity as QuantumOutputPortMachine;

            if (name == OutputItemIcon)
            {
                QuantumOutputPortWindow.SetExemplar(WorldScript.mLocalPlayer, outputPort, (ItemBase)null);
                manager.RedrawWindow();
                return(true);
            }

            _itemSearch = true;
            ItemSearchWindow.SetupUIRules();
            Redraw(targetEntity);
            return(true);
        }