Пример #1
0
 private void LoadModules()
 {
     Action      = LoadModule <ActionModule>(EnableAction, ActionConfig);
     Brain       = LoadModule <BrainModule>(EnableBrain, BrainConfig);
     Inventory   = LoadModule <InventoryModule>(EnableInventory, InventoryConfig);
     Interaction = LoadModule <InteractionModule>(EnableInteraction, InteractionConfig);
     Movement    = LoadModule <MovementModule>(EnableMovement, MovementConfig);
     Physics     = LoadModule <PhysicsModule>(EnablePhysics, PhysicsConfig);
     Stacking    = LoadModule <StackingModule>(EnableStacking, StackingConfig);
     Stats       = LoadModule <StatsModule>(EnableStats, StatsConfig);
     TagList     = LoadModule <TagListModule>(true, TagListConfig);
 }
Пример #2
0
        private void StartApplication()
        {
            var interactionModule = new InteractionModule();

            interactionModule.Intialize(_unityContainer);

            var bootstrapper = _unityContainer.Resolve <IApp>();

            bootstrapper.Started += bootstrapper_Started;

            bootstrapper.Start();
        }