mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-11-25 00:28:33 +01:00
fixed an issue where types would not correctly be loaded from referenced assemblies
This commit is contained in:
parent
a7d5a12df1
commit
a5ba3de533
5 changed files with 22 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
<package>
|
<package>
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>Contentless</id>
|
<id>Contentless</id>
|
||||||
<version>3.0.0</version>
|
<version>3.0.1</version>
|
||||||
<authors>Ellpeck</authors>
|
<authors>Ellpeck</authors>
|
||||||
<description>A tool for MonoGame that automatically handles adding assets to the Content Pipeline project</description>
|
<description>A tool for MonoGame that automatically handles adding assets to the Content Pipeline project</description>
|
||||||
<tags>monogame mono xna content pipeline mgcb builder tool library</tags>
|
<tags>monogame mono xna content pipeline mgcb builder tool library</tags>
|
||||||
|
|
|
@ -12,5 +12,9 @@ namespace Contentless {
|
||||||
this.Type = type;
|
this.Type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string ToString() {
|
||||||
|
return this.Type.Name;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -149,7 +149,7 @@ namespace Contentless {
|
||||||
var processors = new List<string>();
|
var processors = new List<string>();
|
||||||
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) {
|
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) {
|
||||||
try {
|
try {
|
||||||
foreach (var type in assembly.GetExportedTypes()) {
|
foreach (var type in assembly.GetTypes()) {
|
||||||
var importer = (ContentImporterAttribute) type.GetCustomAttribute(typeof(ContentImporterAttribute), true);
|
var importer = (ContentImporterAttribute) type.GetCustomAttribute(typeof(ContentImporterAttribute), true);
|
||||||
if (importer != null)
|
if (importer != null)
|
||||||
importers.Add(new ImporterInfo(importer, type));
|
importers.Add(new ImporterInfo(importer, type));
|
||||||
|
|
2
MonoGame
2
MonoGame
|
@ -1 +1 @@
|
||||||
Subproject commit 97708388e9adf6cb2ff66171ed0be5d4183e6b63
|
Subproject commit 133ef7c79d1e13152c543986e4335b6e01740ec4
|
|
@ -45,3 +45,18 @@
|
||||||
/processor:TextureProcessor
|
/processor:TextureProcessor
|
||||||
/build:Textures/Exclude.png
|
/build:Textures/Exclude.png
|
||||||
|
|
||||||
|
#begin Json/Test.json
|
||||||
|
/importer:TexturePackerJsonImporter
|
||||||
|
/processor:TexturePackerProcessor
|
||||||
|
/build:Json/Test.json
|
||||||
|
|
||||||
|
#begin Tiled/Map.tmx
|
||||||
|
/importer:TiledMapImporter
|
||||||
|
/processor:TiledMapProcessor
|
||||||
|
/build:Tiled/Map.tmx
|
||||||
|
|
||||||
|
#begin Tiled/Tileset.tsx
|
||||||
|
/importer:TiledMapTilesetImporter
|
||||||
|
/processor:TiledMapTilesetProcessor
|
||||||
|
/build:Tiled/Tileset.tsx
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue