Пример #1
0
 public FarmerTeam()
 {
     NetFields.AddFields(money, totalMoneyEarned, hasRustyKey, hasSkullKey, canUnderstandDwarves, readyChecks, proposals, luauIngredients, grangeDisplay, grangeMutex.NetFields, festivalPropRemovalEvent, friendshipData, demolishLock.NetFields, buildLock.NetFields, movieInvitations, movieMutex.NetFields, requestMovieEndEvent, endMovieEvent, requestSpouseSleepEvent, useSeparateWallets, individualMoney, announcedSleepingFarmers.NetFields, sleepAnnounceMode, theaterBuildDate, demolishStableEvent, queenOfSauceRerunWeek, lastDayQueenOfSauceRerunUpdated, broadcastedMail, sharedDailyLuck, spawnMonstersAtNight, junimoKartScores.NetFields, cellarAssignments, synchronizedShopStock.NetFields, junimoKartStatus.NetFields, endOfNightStatus.NetFields, festivalScoreStatus.NetFields, sleepStatus.NetFields, farmhandsCanMoveBuildings, requestPetWarpHomeEvent);
     junimoKartStatus.sortMode    = PlayerStatusList.SortMode.NumberSortDescending;
     festivalScoreStatus.sortMode = PlayerStatusList.SortMode.NumberSortDescending;
     endOfNightStatus.displayMode = PlayerStatusList.DisplayMode.Icons;
     endOfNightStatus.AddSpriteDefinition("sleep", "LooseSprites\\PlayerStatusList", 0, 0, 16, 16);
     endOfNightStatus.AddSpriteDefinition("level", "LooseSprites\\PlayerStatusList", 16, 0, 16, 16);
     endOfNightStatus.AddSpriteDefinition("shipment", "LooseSprites\\PlayerStatusList", 32, 0, 16, 16);
     endOfNightStatus.AddSpriteDefinition("ready", "LooseSprites\\PlayerStatusList", 48, 0, 16, 16);
     endOfNightStatus.iconAnimationFrames = 4;
     money.Minimum = 0;
     festivalPropRemovalEvent.onEvent += delegate(Rectangle rect)
     {
         if (Game1.CurrentEvent != null)
         {
             Game1.CurrentEvent.removeFestivalProps(rect);
         }
     };
     requestSpouseSleepEvent.onEvent += OnRequestSpouseSleepEvent;
     requestPetWarpHomeEvent.onEvent += OnRequestPetWarpHomeEvent;
     requestMovieEndEvent.onEvent    += OnRequestMovieEndEvent;
     endMovieEvent.onEvent           += OnEndMovieEvent;
     demolishStableEvent.onEvent     += OnDemolishStableEvent;
 }
Пример #2
0
 public FarmerTeam()
 {
     NetFields.AddFields(money, totalMoneyEarned, hasRustyKey, hasSkullKey, canUnderstandDwarves, readyChecks, proposals, luauIngredients, grangeDisplay, grangeMutex.NetFields, festivalPropRemovalEvent, friendshipData, demolishLock.NetFields, buildLock.NetFields, movieInvitations, movieMutex.NetFields, requestMovieEndEvent, endMovieEvent, requestSpouseSleepEvent, useSeparateWallets, individualMoney, announcedSleepingFarmers.NetFields, sleepAnnounceMode, theaterBuildDate, demolishStableEvent, queenOfSauceRerunWeek, lastDayQueenOfSauceRerunUpdated, broadcastedMail, sharedDailyLuck, spawnMonstersAtNight, junimoKartScores.NetFields, cellarAssignments, synchronizedShopStock.NetFields, junimoKartStatus.NetFields, endOfNightStatus.NetFields, festivalScoreStatus.NetFields, sleepStatus.NetFields, farmhandsCanMoveBuildings, requestPetWarpHomeEvent, ringPhoneEvent, specialOrders, returnedDonations, returnedDonationsMutex.NetFields, goldenCoconutMutex.NetFields, requestNutDrop, limitedNutDrops, availableSpecialOrders, acceptedSpecialOrderTypes, ordersBoardMutex.NetFields, qiChallengeBoardMutex.NetFields, completedSpecialOrders, addCharacterEvent, requestAddCharacterEvent, requestLeoMove, collectedNutTracker, itemsToRemoveOvernight, mailToRemoveOvernight, newLostAndFoundItems, junimoChest, junimoChestMutex.NetFields, requestHorseWarpEvent, kickOutOfMinesEvent, toggleMineShrineOvernight, mineShrineActivated, specialRulesRemovedToday, addQiGemsToTeam, farmPerfect);
     newLostAndFoundItems.Interpolated(interpolate: false, wait: false);
     junimoKartStatus.sortMode    = PlayerStatusList.SortMode.NumberSortDescending;
     festivalScoreStatus.sortMode = PlayerStatusList.SortMode.NumberSortDescending;
     endOfNightStatus.displayMode = PlayerStatusList.DisplayMode.Icons;
     endOfNightStatus.AddSpriteDefinition("sleep", "LooseSprites\\PlayerStatusList", 0, 0, 16, 16);
     endOfNightStatus.AddSpriteDefinition("level", "LooseSprites\\PlayerStatusList", 16, 0, 16, 16);
     endOfNightStatus.AddSpriteDefinition("shipment", "LooseSprites\\PlayerStatusList", 32, 0, 16, 16);
     endOfNightStatus.AddSpriteDefinition("ready", "LooseSprites\\PlayerStatusList", 48, 0, 16, 16);
     endOfNightStatus.iconAnimationFrames = 4;
     money.Minimum = 0;
     festivalPropRemovalEvent.onEvent += delegate(Rectangle rect)
     {
         if (Game1.CurrentEvent != null)
         {
             Game1.CurrentEvent.removeFestivalProps(rect);
         }
     };
     requestSpouseSleepEvent.onEvent          += OnRequestSpouseSleepEvent;
     requestPetWarpHomeEvent.onEvent          += OnRequestPetWarpHomeEvent;
     requestMovieEndEvent.onEvent             += OnRequestMovieEndEvent;
     endMovieEvent.onEvent                    += OnEndMovieEvent;
     demolishStableEvent.onEvent              += OnDemolishStableEvent;
     ringPhoneEvent.onEvent                   += OnRingPhoneEvent;
     requestNutDrop.onEvent                   += OnRequestNutDrop;
     requestAddCharacterEvent.onEvent         += OnRequestAddCharacterEvent;
     addCharacterEvent.onEvent                += OnAddCharacterEvent;
     requestLeoMove.onEvent                   += OnRequestLeoMoveEvent;
     requestHorseWarpEvent.onEvent            += OnRequestHorseWarp;
     kickOutOfMinesEvent.onEvent              += OnKickOutOfMinesEvent;
     addQiGemsToTeam.onEvent                  += _AddQiGemsToTeam;
     requestHorseWarpEvent.InterpolationWait   = false;
     requestSpouseSleepEvent.InterpolationWait = false;
     requestPetWarpHomeEvent.InterpolationWait = false;
 }