public SingleLoginPromoRewardPM(IDungeonRewardSpawner i_rewardSpawner, ISingleRewardPM_Spawner i_rewardPMSpawner, int i_dayNumber, IGameRewardData i_rewardData)
        {
            mRewardSpawner   = i_rewardSpawner;
            mRewardPMSpawner = i_rewardPMSpawner;

            CreateRewardPM(i_rewardData);
            SetRewardNumberProperty(i_dayNumber);
        }
示例#2
0
 public void CommonInstall()
 {
     MockStringTable      = Substitute.For <IStringTableManager>();
     MockSaveData         = Substitute.For <ITimedChestSaveData>();
     MockData             = Substitute.For <ITimedChestData>();
     MockRewardSpawner    = Substitute.For <ISingleRewardPM_Spawner>();
     MockCountdownSpawner = Substitute.For <IMyCountdown_Spawner>();
     MockBusyIndicator    = Substitute.For <IAppBusyPM>();
 }
示例#3
0
        public AllRewardsPM(ISingleRewardPM_Spawner i_spawner, IMessageService i_messenger, List <IDungeonReward> i_rewards)
        {
            mSpawner            = i_spawner;
            mMessenger          = i_messenger;
            mCoveredRewardCount = i_rewards.Count;

            CreateSingleRewardPMs(i_rewards);
            ListenForMessages(true);
            SetVisibleProperty(false);
            UpdateCanContinueProperty();
        }
示例#4
0
        public TimedChestPM(IStringTableManager i_stringTable, ISingleRewardPM_Spawner i_rewardSpawner, ITimedChestSaveData i_saveData, IMyCountdown_Spawner i_countdownSpawner, IAppBusyPM i_busyIndicator, ITimedChestData i_data)
        {
            mStringTable      = i_stringTable;
            mCountdownSpawner = i_countdownSpawner;
            mRewardSpawner    = i_rewardSpawner;
            mSaveData         = i_saveData;
            mBusyIndicator    = i_busyIndicator;
            mData             = i_data;

            RewardPM = mRewardSpawner.CreateEmpty();

            UpdateProperties();
        }
 public void CommonInstall()
 {
     MockDungeonRewardSpawner = Substitute.For <IDungeonRewardSpawner>();
     MockRewardPMSpawner      = Substitute.For <ISingleRewardPM_Spawner>();
     MockRewardData           = Substitute.For <IGameRewardData>();
 }