Example #1
0
 private void JustDecompileGenerated_set_TaskStatus(Facepunch.Load.TaskStatus value)
 {
     this.JustDecompileGenerated_TaskStatus_k__BackingField = value;
 }
Example #2
0
 private void JustDecompileGenerated_set_TaskStatus(Facepunch.Load.TaskStatus value)
 {
     this.JustDecompileGenerated_TaskStatus_k__BackingField = value;
 }
Example #3
0
        public int this[Facepunch.Load.TaskStatus status]
        {
            get
            {
                switch (status)
                {
                case Facepunch.Load.TaskStatus.Pending:
                    return(this.Pending);

                case Facepunch.Load.TaskStatus.Downloading:
                    return(this.Downloading);

                case (Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Pending):
                    return(this.Pending + this.Downloading);

                case Facepunch.Load.TaskStatus.Complete:
                    return(this.Complete);

                case (Facepunch.Load.TaskStatus.Complete | Facepunch.Load.TaskStatus.Pending):
                    return(this.Pending + this.Complete);

                case (Facepunch.Load.TaskStatus.Complete | Facepunch.Load.TaskStatus.Downloading):
                    return(this.Pending + this.Downloading);

                case (Facepunch.Load.TaskStatus.Complete | Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Pending):
                    return((this.Pending + this.Downloading) + this.Complete);
                }
                return(0);
            }
            set
            {
                switch (status)
                {
                case Facepunch.Load.TaskStatus.Pending:
                    this.Pending = value;
                    break;

                case Facepunch.Load.TaskStatus.Downloading:
                    this.Downloading = value;
                    break;

                case (Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Pending):
                    this.Downloading = this.Pending = value;
                    break;

                case Facepunch.Load.TaskStatus.Complete:
                    this.Complete = value;
                    break;

                case (Facepunch.Load.TaskStatus.Complete | Facepunch.Load.TaskStatus.Pending):
                    this.Complete = this.Pending = value;
                    break;

                case (Facepunch.Load.TaskStatus.Complete | Facepunch.Load.TaskStatus.Downloading):
                    this.Downloading = this.Complete = value;
                    break;

                case (Facepunch.Load.TaskStatus.Complete | Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Pending):
                    this.Complete = this.Pending = this.Downloading = value;
                    break;
                }
            }
        }
Example #4
0
 public int this[Facepunch.Load.TaskStatus status]
 {
     get
     {
         switch (status)
         {
             case Facepunch.Load.TaskStatus.Pending:
             {
                 return this.Pending;
             }
             case Facepunch.Load.TaskStatus.Downloading:
             {
                 return this.Downloading;
             }
             case Facepunch.Load.TaskStatus.Pending | Facepunch.Load.TaskStatus.Downloading:
             {
                 return this.Pending + this.Downloading;
             }
             case Facepunch.Load.TaskStatus.Complete:
             {
                 return this.Complete;
             }
             case Facepunch.Load.TaskStatus.Pending | Facepunch.Load.TaskStatus.Complete:
             {
                 return this.Pending + this.Complete;
             }
             case Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Complete:
             {
                 return this.Pending + this.Downloading;
             }
             case Facepunch.Load.TaskStatus.Pending | Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Complete:
             {
                 return this.Pending + this.Downloading + this.Complete;
             }
         }
         return 0;
     }
     set
     {
         int num;
         switch (status)
         {
             case Facepunch.Load.TaskStatus.Pending:
             {
                 this.Pending = value;
                 break;
             }
             case Facepunch.Load.TaskStatus.Downloading:
             {
                 this.Downloading = value;
                 break;
             }
             case Facepunch.Load.TaskStatus.Pending | Facepunch.Load.TaskStatus.Downloading:
             {
                 int num1 = value;
                 num = num1;
                 this.Pending = num1;
                 this.Downloading = num;
                 break;
             }
             case Facepunch.Load.TaskStatus.Complete:
             {
                 this.Complete = value;
                 break;
             }
             case Facepunch.Load.TaskStatus.Pending | Facepunch.Load.TaskStatus.Complete:
             {
                 int num2 = value;
                 num = num2;
                 this.Pending = num2;
                 this.Complete = num;
                 break;
             }
             case Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Complete:
             {
                 int num3 = value;
                 num = num3;
                 this.Complete = num3;
                 this.Downloading = num;
                 break;
             }
             case Facepunch.Load.TaskStatus.Pending | Facepunch.Load.TaskStatus.Downloading | Facepunch.Load.TaskStatus.Complete:
             {
                 int num4 = value;
                 num = num4;
                 this.Downloading = num4;
                 int num5 = num;
                 num = num5;
                 this.Pending = num5;
                 this.Complete = num;
                 break;
             }
         }
     }
 }