Ejemplo n.º 1
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>();
 }
Ejemplo n.º 2
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();
        }