Exemple #1
0
 // Token: 0x06001208 RID: 4616 RVA: 0x00412B58 File Offset: 0x00410D58
 public void QueueRipple(Vector2 position, Color waveData, Vector2 size, RippleShape shape = RippleShape.Square, float rotation = 0f)
 {
     if (!this._useRippleWaves || Main.drawToScreen)
     {
         this._rippleQueueCount = 0;
         return;
     }
     if (this._rippleQueueCount < this._rippleQueue.Length)
     {
         WaterShaderData.Ripple[] arg_4A_0 = this._rippleQueue;
         int rippleQueueCount = this._rippleQueueCount;
         this._rippleQueueCount     = rippleQueueCount + 1;
         arg_4A_0[rippleQueueCount] = new WaterShaderData.Ripple(position, waveData, size, shape, rotation);
     }
 }
Exemple #2
0
 public void QueueRipple(Vector2 position, Color waveData, Vector2 size, RippleShape shape = RippleShape.Square, float rotation = 0.0f)
 {
     if (!this._useRippleWaves || Main.drawToScreen)
     {
         this._rippleQueueCount = 0;
     }
     else
     {
         if (this._rippleQueueCount >= this._rippleQueue.Length)
         {
             return;
         }
         WaterShaderData.Ripple[] rippleQueue = this._rippleQueue;
         int rippleQueueCount = this._rippleQueueCount;
         this._rippleQueueCount = rippleQueueCount + 1;
         int index = rippleQueueCount;
         WaterShaderData.Ripple ripple = new WaterShaderData.Ripple(position, waveData, size, shape, rotation);
         rippleQueue[index] = ripple;
     }
 }