示例#1
0
 internal void method_16(float float_3, bool bool_6, int int_3)
 {
     this.method_5(string.Concat(new object[]
     {
         "New Aggrorange: ",
         float_3,
         ", ",
         bool_6 ? "ROW" : "",
         "Timeout: ",
         int_3
     }));
     this.class56_0 = new GClass0.Class56();
     this.class56_0.ResetOnWorldChange = bool_6;
     this.class56_0.World = Framework.World;
     if (int_3 < 0 || bool_6)
     {
         int_3 = 1440;
     }
     this.class56_0.EndTick = Environment.TickCount + int_3 * 1000;
     this.class56_0.Radius = float_3;
 }
示例#2
0
 internal float method_12()
 {
     float radius;
     if (this.class56_0 == null)
     {
         radius = this.float_0;
     }
     else
     {
         if (this.class56_0.EndTick < Environment.TickCount || (this.class56_0.ResetOnWorldChange && this.class56_0.World != Framework.World))
         {
             this.class56_0 = null;
             this.method_5("Old aggrorange expired, reverting to: " + this.float_0 + " units");
         }
         if (this.class56_0 == null)
         {
             radius = this.float_0;
         }
         else
         {
             radius = this.class56_0.Radius;
         }
     }
     return radius;
 }