public override void Import() { if (Definitions == null) { throw new Exception(); } if (Definitions.Count() == 0) { return; } // Pull together all of the texture segments for each of the definitions CollateSegments(); // Pack the textures into the level Pack(); // Update the level with any new ObjectTextures and update meshes accordingly MergeObjectTextures(); // Update the level with any new SpriteTextures and SpriteSequences MergeSpriteTextures(); // Inform the texture position monitor of the new location of tracked textures NotifyTextureWatcher(); }
public bool DefinitionIdsMatch(MetadataDefinitionGroupResource other) { if (other == null) { throw new InvariantGuardFailureException(); } if (Definitions.Count() != other.Definitions.Count()) { return(false); } var result = Definitions.Intersect(other.Definitions).Count() == Definitions.Count(); return(result); }