public void RemoveAssetDependencies(AssetDescription description, List <AssetDescription> dependentDescriptions) { foreach (var dependentDescription in dependentDescriptions) { mAssetGraph.RemoveEdge(description, dependentDescription); } }
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); }
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); }
public Asset CreateIndependentAsset(AssetDescription description, SegmentRange <int> range) { return(mAssetGraph.CreateIndependentAsset(description, range)); }
public Asset CreateAsset(AssetDescription description) { return(mAssetGraph.CreateAsset(description)); }
public void RemoveAssetDependency(AssetDescription description, AssetDescription dependentDescription) { mAssetGraph.RemoveEdge(description, dependentDescription); }
public void AddAssetDependency(AssetDescription description, AssetDescription dependentDescription) { mAssetGraph.AddEdge(description, dependentDescription); }
public void RemoveAssetDescription(AssetDescription description) { description.Package.RemoveAssetDescription(description); mAssetGraph.RemoveNode(description); }
public void AddAssetDescription(Package package, AssetDescription description) { package.AddAssetDescription(description); mAssetGraph.AddNode(new GraphNode <AssetDescription>(description)); }
internal Asset(object instance, int size, bool isReference, AssetDescription assetDescription) { Size = size; Instance = instance; IsReference = isReference; AssetDescription = assetDescription; IsExisted = true; }
public void RemoveAssetDescription(AssetDescription description) { RuntimeException.Assert(description.Reference == 0); mAssetDescriptions.Remove(description.Name); }
public void AddAssetDescription(AssetDescription description) { mAssetDescriptions.Add(description.Name, description); }