Ejemplo n.º 1
0
 public LongRunningAction ShowScroll(string localizedString, float forSeconds, bool onTop, bool onVolume)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     TrialAndAwards.\u003C\u003Ec__DisplayClass19 cDisplayClass19 = new TrialAndAwards.\u003C\u003Ec__DisplayClass19();
     // ISSUE: reference to a compiler-generated field
     cDisplayClass19.localizedString = localizedString;
     // ISSUE: reference to a compiler-generated field
     cDisplayClass19.\u003C\u003E4__this = this;
     if (this.GameState.ActiveScroll != null)
     {
         // ISSUE: object of a compiler-generated type is created
         // ISSUE: variable of a compiler-generated type
         TrialAndAwards.\u003C\u003Ec__DisplayClass1b cDisplayClass1b = new TrialAndAwards.\u003C\u003Ec__DisplayClass1b();
         // ISSUE: reference to a compiler-generated field
         cDisplayClass1b.CS\u0024\u003C\u003E8__locals1a = cDisplayClass19;
         TextScroll textScroll = this.GameState.ActiveScroll;
         while (textScroll.NextScroll != null)
         {
             textScroll = textScroll.NextScroll;
         }
         // ISSUE: reference to a compiler-generated field
         if (textScroll.Key == cDisplayClass19.localizedString && !textScroll.Closing)
         {
             return((LongRunningAction)null);
         }
         textScroll.Closing = true;
         textScroll.Timeout = new float?();
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated field
         cDisplayClass1b.nextScroll = new TextScroll(this.Game, GameText.GetString(cDisplayClass19.localizedString), onTop)
         {
             Key = cDisplayClass19.localizedString
         };
         if ((double)forSeconds > 0.0)
         {
             // ISSUE: reference to a compiler-generated field
             cDisplayClass1b.nextScroll.Timeout = new float?(forSeconds);
         }
         // ISSUE: reference to a compiler-generated field
         this.GameState.ActiveScroll.NextScroll = cDisplayClass1b.nextScroll;
         if (onVolume)
         {
             // ISSUE: reference to a compiler-generated method
             return(new LongRunningAction(new Action(cDisplayClass1b.\u003CShowScroll\u003Eb__17)));
         }
         else
         {
             return((LongRunningAction)null);
         }
     }
     else
     {
         // ISSUE: reference to a compiler-generated field
         // ISSUE: reference to a compiler-generated field
         ServiceHelper.AddComponent((IGameComponent)(this.GameState.ActiveScroll = new TextScroll(this.Game, GameText.GetString(cDisplayClass19.localizedString), onTop)
         {
             Key = cDisplayClass19.localizedString
         }));
         if ((double)forSeconds > 0.0)
         {
             this.GameState.ActiveScroll.Timeout = new float?(forSeconds);
         }
         if (onVolume)
         {
             // ISSUE: reference to a compiler-generated method
             return(new LongRunningAction(new Action(cDisplayClass19.\u003CShowScroll\u003Eb__18)));
         }
         else
         {
             return((LongRunningAction)null);
         }
     }
 }
Ejemplo n.º 2
0
 public LongRunningAction ShowScroll(string localizedString, float forSeconds, bool onTop, bool onVolume)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   TrialAndAwards.\u003C\u003Ec__DisplayClass19 cDisplayClass19 = new TrialAndAwards.\u003C\u003Ec__DisplayClass19();
   // ISSUE: reference to a compiler-generated field
   cDisplayClass19.localizedString = localizedString;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass19.\u003C\u003E4__this = this;
   if (this.GameState.ActiveScroll != null)
   {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     TrialAndAwards.\u003C\u003Ec__DisplayClass1b cDisplayClass1b = new TrialAndAwards.\u003C\u003Ec__DisplayClass1b();
     // ISSUE: reference to a compiler-generated field
     cDisplayClass1b.CS\u0024\u003C\u003E8__locals1a = cDisplayClass19;
     TextScroll textScroll = this.GameState.ActiveScroll;
     while (textScroll.NextScroll != null)
       textScroll = textScroll.NextScroll;
     // ISSUE: reference to a compiler-generated field
     if (textScroll.Key == cDisplayClass19.localizedString && !textScroll.Closing)
       return (LongRunningAction) null;
     textScroll.Closing = true;
     textScroll.Timeout = new float?();
     // ISSUE: reference to a compiler-generated field
     // ISSUE: reference to a compiler-generated field
     // ISSUE: reference to a compiler-generated field
     cDisplayClass1b.nextScroll = new TextScroll(this.Game, GameText.GetString(cDisplayClass19.localizedString), onTop)
     {
       Key = cDisplayClass19.localizedString
     };
     if ((double) forSeconds > 0.0)
     {
       // ISSUE: reference to a compiler-generated field
       cDisplayClass1b.nextScroll.Timeout = new float?(forSeconds);
     }
     // ISSUE: reference to a compiler-generated field
     this.GameState.ActiveScroll.NextScroll = cDisplayClass1b.nextScroll;
     if (onVolume)
     {
       // ISSUE: reference to a compiler-generated method
       return new LongRunningAction(new Action(cDisplayClass1b.\u003CShowScroll\u003Eb__17));
     }
     else
       return (LongRunningAction) null;
   }
   else
   {
     // ISSUE: reference to a compiler-generated field
     // ISSUE: reference to a compiler-generated field
     ServiceHelper.AddComponent((IGameComponent) (this.GameState.ActiveScroll = new TextScroll(this.Game, GameText.GetString(cDisplayClass19.localizedString), onTop)
     {
       Key = cDisplayClass19.localizedString
     }));
     if ((double) forSeconds > 0.0)
       this.GameState.ActiveScroll.Timeout = new float?(forSeconds);
     if (onVolume)
     {
       // ISSUE: reference to a compiler-generated method
       return new LongRunningAction(new Action(cDisplayClass19.\u003CShowScroll\u003Eb__18));
     }
     else
       return (LongRunningAction) null;
   }
 }