| using System; |
| using System; |
| |
| |
| [Serializable] |
| [Serializable] |
| public class BoxData |
| public class BoxData |
| { |
| { |
| public void Load(string[] fragments) |
| public void Load(string[] fragments) |
| { |
| { |
. | this.collectCost = new BigNumber(fragments[2]); |
| this.collectCost = new BigNumber(-9999); |
| this.cardCount = int.Parse(fragments[3]); |
| this.cardCount = int.Parse(fragments[3]); |
| this.normalChanse = float.Parse(fragments[4]); |
| this.normalChanse = float.Parse(fragments[4]); |
| this.normalGuarenteed = int.Parse(fragments[5]); |
| this.normalGuarenteed = int.Parse(fragments[5]); |
| this.normalMax = int.Parse(fragments[6]); |
| this.normalMax = int.Parse(fragments[6]); |
| this.rareChanse = float.Parse(fragments[7]); |
| this.rareChanse = float.Parse(fragments[7]); |
| this.rareGuarenteed = int.Parse(fragments[8]); |
| this.rareGuarenteed = int.Parse(fragments[8]); |
| this.rareMax = int.Parse(fragments[9]); |
| this.rareMax = int.Parse(fragments[9]); |
| this.epicChanse = float.Parse(fragments[10]); |
| this.epicChanse = float.Parse(fragments[10]); |
| this.epicGuarenteed = int.Parse(fragments[11]); |
| this.epicGuarenteed = int.Parse(fragments[11]); |
| this.epicMax = int.Parse(fragments[12]); |
| this.epicMax = int.Parse(fragments[12]); |
| this.legendaryChanse = float.Parse(fragments[13]); |
| this.legendaryChanse = float.Parse(fragments[13]); |
| this.legendaryGuarenteed = int.Parse(fragments[14]); |
| this.legendaryGuarenteed = int.Parse(fragments[14]); |
| this.legendaryMax = int.Parse(fragments[15]); |
| this.legendaryMax = int.Parse(fragments[15]); |
| } |
| } |
| |
| |
| public BigNumber collectCost; |
| public BigNumber collectCost; |
| |
| |
| public int cardCount; |
| public int cardCount; |
| |
| |
| public float normalChanse; |
| public float normalChanse; |
| |
| |
| public int normalGuarenteed; |
| public int normalGuarenteed; |
| |
| |
| public int normalMax; |
| public int normalMax; |
| |
| |
| public float rareChanse; |
| public float rareChanse; |
| |
| |
| public int rareGuarenteed; |
| public int rareGuarenteed; |
| |
| |
| public int rareMax; |
| public int rareMax; |
| |
| |
| public float epicChanse; |
| public float epicChanse; |
| |
| |
| public int epicGuarenteed; |
| public int epicGuarenteed; |
| |
| |
| public int epicMax; |
| public int epicMax; |
| |
| |
| public float legendaryChanse; |
| public float legendaryChanse; |
| |
| |
| public int legendaryGuarenteed; |
| public int legendaryGuarenteed; |
| |
| |
| public int legendaryMax; |
| public int legendaryMax; |
| } |
| } |
| |
| |