Example #1
0
 public void RemoveAssetDependencies(AssetDescription description, List <AssetDescription> dependentDescriptions)
 {
     foreach (var dependentDescription in dependentDescriptions)
     {
         mAssetGraph.RemoveEdge(description, dependentDescription);
     }
 }
Example #2
0
        internal void RemoveAssetDescription(AssetDescription description)
        {
            LogEmitter.Apply(LogLevel.Information, "[Remove Asset Description] [Type = {0}] [Name = {1}] from [{2}]", description.Type, description.Name, Name);

            description.Package = null;

            mPackageComponent.RemoveAssetDescription(description);
        }
Example #3
0
        internal void AddAssetDescription(AssetDescription description)
        {
            LogEmitter.Apply(LogLevel.Information, "[Add Asset Description] [Type = {0}] [Name = {1}] from [{2}]", description.Type, description.Name, Name);

            //if the asset has been in the other package
            //we change the package asset in
            if (description.Package != null)
            {
                LogEmitter.Apply(LogLevel.Warning, "[Add Asset Description and Change the Package] [Type = {0}] [Name = {1}] from [{2}]",
                                 description.Type, description.Name, Name);

                description.Package.RemoveAssetDescription(description);
            }

            description.Package = this;

            mPackageComponent.AddAssetDescription(description);
        }
Example #4
0
 public Asset CreateIndependentAsset(AssetDescription description, SegmentRange <int> range)
 {
     return(mAssetGraph.CreateIndependentAsset(description, range));
 }
Example #5
0
 public Asset CreateAsset(AssetDescription description)
 {
     return(mAssetGraph.CreateAsset(description));
 }
Example #6
0
 public void RemoveAssetDependency(AssetDescription description, AssetDescription dependentDescription)
 {
     mAssetGraph.RemoveEdge(description, dependentDescription);
 }
Example #7
0
 public void AddAssetDependency(AssetDescription description, AssetDescription dependentDescription)
 {
     mAssetGraph.AddEdge(description, dependentDescription);
 }
Example #8
0
        public void RemoveAssetDescription(AssetDescription description)
        {
            description.Package.RemoveAssetDescription(description);

            mAssetGraph.RemoveNode(description);
        }
Example #9
0
        public void AddAssetDescription(Package package, AssetDescription description)
        {
            package.AddAssetDescription(description);

            mAssetGraph.AddNode(new GraphNode <AssetDescription>(description));
        }
Example #10
0
 internal Asset(object instance, int size, bool isReference,
                AssetDescription assetDescription)
 {
     Size             = size; Instance = instance; IsReference = isReference;
     AssetDescription = assetDescription; IsExisted = true;
 }
Example #11
0
        public void RemoveAssetDescription(AssetDescription description)
        {
            RuntimeException.Assert(description.Reference == 0);

            mAssetDescriptions.Remove(description.Name);
        }
Example #12
0
 public void AddAssetDescription(AssetDescription description)
 {
     mAssetDescriptions.Add(description.Name, description);
 }