Skip to content

Manual Instantiation

Jasper Blues edited this page Feb 14, 2015 · 4 revisions

##Manual Instantiation (cmd-line apps, librarires, tests, etc).

Manual instantiation can be used anywhere a Typhoon assembly is required.

MiddleAgesAssembly *assembly = [MiddleAgesAssembly assembly];
[[TyphoonAssemblyActivator withAssemblies:@[assembly]] activate];
Knight* knight = [assembly basicKnight];