示例#1
0
        public bd2Engine ToLiveEngine()
        {
            bd2Engine mainEngine = new bd2Engine();

            if (requiresCustomHub)
            {
                mainEngine.InjectHub(this.hubToUse);
            }
            //mainEngine.InjectBotSupport();
            //mainEngine.InjectEquipmentSupport(new EquipmentSupport(new HardcodedEquipmentRepository()));
            mainEngine.RegisterForMessages();
            //xmloutput.RegisterForMessages();
            return(mainEngine);
        }