Aurora.DefaultLibraryLoaders.DefaultAssetXMLLoader.CreateAsset C# (CSharp) Метод

CreateAsset() защищенный Метод

protected CreateAsset ( string assetIdStr, string name, string path, AssetType type ) : AssetBase
assetIdStr string
name string
path string
type AssetType
Результат AssetBase
        protected AssetBase CreateAsset(string assetIdStr, string name, string path, AssetType type)
        {
            AssetBase asset = new AssetBase(new UUID(assetIdStr), name, type, m_service.LibraryOwner);

            if (!String.IsNullOrEmpty(path))
            {
                //MainConsole.Instance.InfoFormat("[ASSETS]: Loading: [{0}][{1}]", name, path);

                LoadAsset(asset, path);
            }
            else
            {
                MainConsole.Instance.InfoFormat("[ASSETS]: Instantiated: [{0}]", name);
            }

            return asset;
        }