Added: LocalAssemblies / LocalRules to Manifest.cs (can be used to add a custom set of rules / assemblies to be loaded, other than the ones defined in the mod)

This commit is contained in:
geckosoft
2010-11-01 04:07:05 +01:00
committed by Chris Forbes
parent 8392a44314
commit 3e08f9b1b1
3 changed files with 6 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRA
.ToList();
// Namespaces from each mod assembly
foreach (var a in manifest.Assemblies)
foreach (var a in manifest.Assemblies.Concat(manifest.LocalAssemblies))
{
var asm = Assembly.LoadFile(Path.GetFullPath(a));
asms.AddRange(asm.GetNamespaces().Select(ns => Pair.New(asm, ns)));