Exemple #1
0
 public LongRunningAction Pulse(int id, string textureName)
 {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     ArtObjectService.\u003C\u003Ec__DisplayClass12 cDisplayClass12 = new ArtObjectService.\u003C\u003Ec__DisplayClass12();
     // ISSUE: reference to a compiler-generated field
     cDisplayClass12.\u003C\u003E4__this = this;
     // ISSUE: reference to a compiler-generated field
     cDisplayClass12.lightPlane = new BackgroundPlane(this.LevelMaterializer.StaticPlanesMesh, textureName, false)
     {
         Position            = this.LevelManager.ArtObjects[id].Position - FezMath.ForwardVector(this.CameraManager.Viewpoint) * 10f,
         Rotation            = this.CameraManager.Rotation,
         AllowOverbrightness = true,
         LightMap            = true,
         AlwaysOnTop         = true,
         PixelatedLightmap   = true
     };
     // ISSUE: reference to a compiler-generated field
     this.LevelManager.AddPlane(cDisplayClass12.lightPlane);
     // ISSUE: reference to a compiler-generated method
     return(new LongRunningAction(new Func <float, float, bool>(cDisplayClass12.\u003CPulse\u003Eb__11)));
 }
Exemple #2
0
 public LongRunningAction Pulse(int id, string textureName)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   ArtObjectService.\u003C\u003Ec__DisplayClass12 cDisplayClass12 = new ArtObjectService.\u003C\u003Ec__DisplayClass12();
   // ISSUE: reference to a compiler-generated field
   cDisplayClass12.\u003C\u003E4__this = this;
   // ISSUE: reference to a compiler-generated field
   cDisplayClass12.lightPlane = new BackgroundPlane(this.LevelMaterializer.StaticPlanesMesh, textureName, false)
   {
     Position = this.LevelManager.ArtObjects[id].Position - FezMath.ForwardVector(this.CameraManager.Viewpoint) * 10f,
     Rotation = this.CameraManager.Rotation,
     AllowOverbrightness = true,
     LightMap = true,
     AlwaysOnTop = true,
     PixelatedLightmap = true
   };
   // ISSUE: reference to a compiler-generated field
   this.LevelManager.AddPlane(cDisplayClass12.lightPlane);
   // ISSUE: reference to a compiler-generated method
   return new LongRunningAction(new Func<float, float, bool>(cDisplayClass12.\u003CPulse\u003Eb__11));
 }