Skip to content

ProjectModules

namespace Griff.Runtime;
public static class ProjectModules

The modules a game uses (see GameModule): those a component of which is in one of its scenes or prefabs, and those its scripts were built against. A game builds the systems of these alone (Modules), its scripts get a using for each, and its export carries their assemblies and no other module’s.

public static IReadOnlyList<GameModule> BuiltAgainst(Assembly scripts)

The modules scripts (a project’s scripts, built) were built against: whose types they name.

public static IReadOnlyList<GameModule> InFiles(string assetsFolder)

The modules the scenes and prefabs under assetsFolder name a component of.

public static IReadOnlyList<GameModule> InScene(Scene scene)

The modules whose components are in scene.

public static IReadOnlyList<GameModule> Of(Project project, Assembly? scripts = null, IEnumerable<Scene>? open = null)

The modules project uses: those its scenes and prefabs name a component of, those scripts (its scripts, built) were built against, and those of open (scenes the editor has open, unsaved changes and all).

public static IReadOnlyList<GameModule> Of(string assetsFolder, Assembly? scripts = null, IEnumerable<Scene>? open = null)