Detailed Description

This searches for modules which conform to the standard module interface in the given assemblies. It'll then invoke their start methods in their defined order. As they start, they'll also optionally add to an AssemblyScanner which is then used to e.g. discover custom tags etc.

Static Public Member Functions

static void Now (Type type)
 Starts all modules within the assembly that contains the given type. If it's already been started, this does nothing. It will: More...
 
static void Now (Assembly asm)
 Starts all modules within the given assembly. More...
 
static void Now (Assembly asm, bool sharedScanner)
 Starts all modules within the given assembly. More...
 
static void Now (Assembly asm, StartInfo info)
 Starts all modules within the given assembly. More...
 

Static Public Attributes

static Dictionary< Assembly,
StartInfo
Started =new Dictionary<Assembly,StartInfo>()
 All started modules. More...
 

Member Function Documentation

static void Modular.Start.Now ( Type  type)
inlinestatic

Starts all modules within the assembly that contains the given type. If it's already been started, this does nothing. It will:

  • Runs all methods in a Modular.Main class.
  • Run any new scanners on already loaded modules (The assembly contains a module which scans for types)
  • Adds those new ones to a global set of scanners
  • Run all scanners on the new module (Searches for properties, units, tags,..)
static void Modular.Start.Now ( Assembly  asm)
inlinestatic

Starts all modules within the given assembly.

static void Modular.Start.Now ( Assembly  asm,
bool  sharedScanner 
)
inlinestatic

Starts all modules within the given assembly.

static void Modular.Start.Now ( Assembly  asm,
StartInfo  info 
)
inlinestatic

Starts all modules within the given assembly.

Parameters
infoAn information object passed to each starting module.

Member Data Documentation

Dictionary<Assembly,StartInfo> Modular.Start.Started =new Dictionary<Assembly,StartInfo>()
static

All started modules.