コード例 #1
0
        // ---------------------------------------------------------------------------------
        /// Creates a visual script node from the given library object.
        ///
        /// @param libraryObject The library object from which to create a visual node.
        /// @param iStorage The storage in which to put the created node.
        /// @return _true_ if instance was created. _false_ otherwise.
        ///
        bool CreateInstance(LibraryObject libraryObject, iCS_IStorage iStorage)
        {
            if (libraryObject is LibraryType)
            {
                var libraryType = libraryObject as LibraryType;
                iStorage.CreatePropertyWizardNode(-1, libraryType.type);
                return(true);
            }
            var node = iStorage.CreateNode(-1, libraryObject);

            return(node != null);
        }