private void InitializeDaysOfTheWeek()
 {
     DaysOfTheWeek.Add(new SVDayOfWeek()
     {
         Name         = "Monday",
         ClosedStores = new List <SVWikiLink>()
         {
             Shops.MarniesRanch,
         },
     });
     DaysOfTheWeek.Add(new SVDayOfWeek()
     {
         Name         = "Tuesday",
         ClosedStores = new List <SVWikiLink>()
         {
             Shops.CarpenterShop,
             Shops.MarniesRanch,
         },
     });
     DaysOfTheWeek.Add(new SVDayOfWeek()
     {
         Name         = "Wednesday",
         ClosedStores = new List <SVWikiLink>()
         {
             Shops.GeneralStore
         },
         QueenOfSauceRerun = true,
     });
     DaysOfTheWeek.Add(new SVDayOfWeek()
     {
         Name = "Thursday",
     });
     DaysOfTheWeek.Add(new SVDayOfWeek()
     {
         Name = "Friday",
         ClosedStoresAfterCommunityCenter = new List <SVWikiLink>()
         {
             Shops.CarpenterShop
         },
         EarlyStoreClosures = new List <Tuple <SVWikiLink, string> >()
         {
             new Tuple <SVWikiLink, string>(Shops.Blacksmith, "4:00pm")
         },
         TravelingCartOpen = true,
     });
     DaysOfTheWeek.Add(new SVDayOfWeek()
     {
         Name = "Saturday",
         ClosedStoresOnSunnyDays = new List <SVWikiLink>()
         {
             Shops.FishShop
         },
     });
     DaysOfTheWeek.Add(new SVDayOfWeek()
     {
         Name = "Sunday",
         TravelingCartOpen     = true,
         QueenOfSauceNewRecipe = true,
     });
 }
Пример #2
0
        public void Unpack(BinaryReader reader)
        {
            ZeroTimeOfYear = reader.ReadDouble();
            ZeroYear       = reader.ReadUInt32();
            DayLength      = reader.ReadSingle();
            DaysPerYear    = reader.ReadUInt32();
            YearSpec       = reader.ReadPString();
            reader.AlignBoundary();

            TimesOfDay.Unpack(reader);

            uint numDaysOfTheWeek = reader.ReadUInt32();

            for (uint i = 0; i < numDaysOfTheWeek; i++)
            {
                var weekDay = reader.ReadPString();
                reader.AlignBoundary();
                DaysOfTheWeek.Add(weekDay);
            }

            Seasons.Unpack(reader);
        }