public void AddOne(string[] value)
            {
                int index  = 0;
                int length = value.Length;

                while (index < length)
                {
                    Drop_DropModel.DropSaveOneData item = new Drop_DropModel.DropSaveOneData();
                    item.Init(value[index]);
                    this.weight += item.weight;
                    this.list.Add(item);
                    index++;
                }
            }
            public List <Drop_DropModel.DropData> GetAllDrop()
            {
                List <Drop_DropModel.DropData> list = new List <Drop_DropModel.DropData>();
                int num   = 0;
                int count = this.list.Count;

                while (num < count)
                {
                    Drop_DropModel.DropSaveOneData data = this.list[num];
                    Drop_DropModel.DropData        item = new Drop_DropModel.DropData((PropType)data.type, data.id, data.RandomCount());
                    list.Add(item);
                    num++;
                }
                return(list);
            }
 public Drop_DropModel.DropData GetRandomDrop()
 {
     if (this.IsDrop())
     {
         int num   = GameLogic.Random(0, this.weight);
         int num2  = 0;
         int count = this.list.Count;
         while (num2 < count)
         {
             Drop_DropModel.DropSaveOneData data = this.list[num2];
             if (num < data.weight)
             {
                 return(new Drop_DropModel.DropData((PropType)data.type, data.id, data.RandomCount()));
             }
             num -= data.weight;
             num2++;
         }
     }
     return(null);
 }