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 *mainAssembly = [MiddleAgesAssembly assembly];
QuestsAssembly *quests = [QuestsAssembly assembly];
[[TyphoonAssemblyActivator withAssemblies:@[mainAssembly, quests]] activate];
Knight* knight = [mainAssembly basicKnight];