Collections are packages of their own
A collection is no longer a file inside a mod: it is a package (folder or zip) named after its id with collection.json, cover and optional locale/, shipped in collections/ next to the mods or kept by the player in user://collections/. Covers and texts come from the package; mods do not ship collections.
This commit is contained in:
1 parent
171e6528b5
commit
3f23ebadcd
1 file changed
-5
@@ -77,11 +77,6 @@ namespace Cthangover.Validator
|
|||||||
if (!file.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
|
if (!file.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// The reserved collections/ folder holds scheme documents whose
|
|
||||||
// "kind" (game/component/toolset) is not an entity discriminator.
|
|
||||||
if (file.StartsWith(ModCollectionStore.ProviderDirectory + "/", StringComparison.OrdinalIgnoreCase))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
var document = ReadDocument(context, mod, file);
|
var document = ReadDocument(context, mod, file);
|
||||||
if (document == null)
|
if (document == null)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user