Example #1
0
        public long GetExportID(Object asset)
        {
            if (m_assetCollections.TryGetValue(asset.AssetInfo, out IExportCollection collection))
            {
                return(collection.GetExportID(asset));
            }

            return(ExportCollection.GetMainExportID(asset));
        }
Example #2
0
        public MetaPtr CreateExportPointer(Object asset)
        {
            if (m_assetCollections.TryGetValue(asset.AssetInfo, out IExportCollection collection))
            {
                return(collection.CreateExportPointer(asset, collection == CurrentCollection));
            }

            long exportID = ExportCollection.GetMainExportID(asset);

            return(new MetaPtr(exportID, GUID.MissingReference, AssetType.Meta));
        }
Example #3
0
        private ExportCollection LoadExports(XmlNode node)
        {
            ExportCollection exports = new ExportCollection();

            foreach (XmlNode xn in node.ChildNodes)
            {
                if ("#comment" == xn.Name)
                {
                    continue;
                }

                Export export = LoadExport(xn);
                exports.Add(export.Id, export);
            }

            return(exports);
        }
Example #4
0
 public ExportPointer(ClassIDType classID, AssetType assetType) :
     this(ExportCollection.GetMainExportID((uint)classID), EngineGUID.MissingReference, assetType)
 {
 }
Example #5
0
 public MetaPtr(ClassIDType classID, AssetType assetType) :
     this(ExportCollection.GetMainExportID((uint)classID), UnityGUID.MissingReference, assetType)
 {
 }