public void Setup() { _guid = Guid.NewGuid(); _mockBzDao = new Mock <IGenericDao <BazaarItemDto> >(); _mockItemDao = new Mock <IGenericDao <IItemInstanceDto> >(); var mockCharacterDao = new Mock <IGenericDao <CharacterDto> >(); var itemList = new List <ItemDto>(); _bazaarItemsHolder = new BazaarItemsHolder(_mockBzDao.Object, _mockItemDao.Object, itemList, mockCharacterDao.Object); _bazaarController = new BazaarController(_bazaarItemsHolder, _mockBzDao.Object, _mockItemDao.Object); }
private void BazaarController_SetUpSeerStations(On.RoR2.BazaarController.orig_SetUpSeerStations orig, BazaarController self) { orig(self); if (ModConfig.modifyOriginalBazaar.Value) { foreach (SeerStationController seerStationController in self.seerStations) { seerStationController.GetComponent <PurchaseInteraction>().Networkcost = ModConfig.seerLunarCost.Value; } StartCoroutine(delayedPriceChangeLunarShop()); } }
private void BazaarController_Start(On.RoR2.BazaarController.orig_Awake orig, BazaarController self) { orig(self); if (NetworkServer.active) { SpawnPrinters(); } }