示例#1
0
        public void ApplyOption(IGameOption option)
        {
            FTrack.Track();
            // To Start, we just have the player to apply stuff to.
            if (Player != null)
            {
                Player.ApplyOption(option);
            }

            if (CurrentDelta != null)
            {
                CurrentDelta.ApplyOption(option);
            }

            if (DailyDelta != null)
            {
                DailyDelta.ApplyOption(option);
            }

            if (null == _currentPage.AppliedOptions)
            {
                _currentPage.AppliedOptions = new AppliedOptionSet();
            }
            _currentPage.AppliedOptions.Add(option);
            //_currentPage.NutrientState = Player.Nutrients;
        }
示例#2
0
 public void ReadyNextPage()
 {
     FTrack.Track();
     CurrentDelta = new NutrientSet();
     if (_currentPage.MainType == PageType.Day_Intro)
     {
         DailyDelta = new NutrientSet();
     }
     _currentPage.AppliedOptions = null;
 }