public IEnumerable<IProperty> GetProperties(Champion champion) { LoadProperty load; return new IProperty[] { load = new LoadProperty(champion), new HealthProperty(GetValueOfDMHexEncoding(descriptor[4].Substring(0, 4))), new StaminaProperty(GetValueOfDMHexEncoding(descriptor[4].Substring(4, 4))), new ManaProperty(GetValueOfDMHexEncoding(descriptor[4].Substring(8, 4))), new LuckProperty(GetValueOfDMHexEncoding(descriptor[5].Substring(0, 2))), new StrengthProperty(GetValueOfDMHexEncoding(descriptor[5].Substring(2, 2))), new DextrityProperty(GetValueOfDMHexEncoding(descriptor[5].Substring(4, 2)), load), new WisdomProperty(GetValueOfDMHexEncoding(descriptor[5].Substring(6, 2))), new VitalityProperty(GetValueOfDMHexEncoding(descriptor[5].Substring(8, 2))), new AntiMagicProperty(GetValueOfDMHexEncoding(descriptor[5].Substring(10, 2))), new AntiFireProperty(GetValueOfDMHexEncoding(descriptor[5].Substring(12, 2))), }; }
public DextrityProperty(int value, LoadProperty load) { this.load = load; BaseValue = this.value = value; }