Пример #1
0
        /// <summary>
        /// Creates a unique instance of the plugin type, with new
        /// instances of all native-code instances needed to access
        /// the entire hardware API.
        /// </summary>
        public ImplantJSInstance CreateInstance(JavascriptImplant parent)
        {
            var implant = ImplantFactory.Construct(parent);

            implant.osc      = OscFactory.Construct(parent);
            implant.pads     = PadFactory.Construct(parent);
            implant.knobs    = KnobFactory.Construct(parent);
            implant.keys     = KeysFactory.Construct(parent);
            implant.gui      = GuiFactory.Construct(parent);
            implant.time     = TimeFactory.Construct(parent);
            implant.settings = SettingsFactory.Construct(parent);
            implant.shared   = StaticFactory.Construct(parent);
            implant.session  = SessionFactory.Construct(parent);
            implant.mode     = ModesFactory.Construct(parent);

            return(implant);
        }