private void checkWithinDateRange()
 {
     if (!contentSchedulerService.IsDuringScheduleEventDates(dateDefinitions[DateDefinitionKey.Id]))
     {
         return;
     }
     if (!hideDuringQuests())
     {
         currentCutsceneEvent = checkSubEvents();
         if (currentCutsceneEvent.CutsceneData == null && currentCutsceneEvent.DecorationData == null)
         {
             handleNoSubEvent();
             allLoadingComplete();
         }
         else
         {
             loadDecorations(onDecorationsLoaded, beginLoadCutscene);
         }
     }
     else
     {
         allLoadingComplete();
     }
 }
Ejemplo n.º 2
0
 private void parseLoginZoneDefinitions()
 {
     LoginZoneDefinition[] array = Service.Get <IGameData>().Get <LoginZoneDefinition[]>();
     for (int i = 0; i < array.Length; i++)
     {
         ScheduledEventDateDefinition scheduledEventDateDefinition = Service.Get <IGameData>().Get <Dictionary <int, ScheduledEventDateDefinition> >()[array[i].ScheduledEventDateKey.Id];
         if (contentSchedulerService.IsDuringScheduleEventDates(scheduledEventDateDefinition) && (!hasConditions(array[i]) || anyConditionsMet(array[i].ANYConditions)))
         {
             if (array[i].Zone != null)
             {
                 gameStateController.LoginZone = array[i].Zone.Id;
                 return;
             }
             Log.LogErrorFormatted(this, "The Zone for the event {0} is missing", scheduledEventDateDefinition.name);
         }
     }
     gameStateController.LoginZone = "";
 }