Beispiel #1
0
 protected override void OnRead(SQLiteDataReader reader)
 {
     Base.Read(reader);
     PassiveEffectAttributes.Read(reader);
     PassiveEffectRates.Read(reader);
     StatMods.Read(reader);
     MaxStackInput.Text          = reader["MaxStack"].ToString();
     StepsToRemoveInput.Text     = reader["StepsToRemove"].ToString();
     ContactSpreadRateInput.Text = reader["ContactSpreadRate"].ToString();
     StunInput.IsChecked         = reader["Stun"].ToString() == "True" ? true : false;;
     PetrifyInput.IsChecked      = reader["Petrify"].ToString() == "True" ? true : false;;
     KOInput.IsChecked           = reader["KO"].ToString() == "True" ? true : false;;
 }
 protected override void OnRead(SQLiteDataReader reader)
 {
     Base.Read(reader);
     PassiveEffectAttributes.Read(reader);
     PassiveEffectRates.Read(reader);
     MapForegroundInput.Source    = ImageManager.BytesToImage(ImageManager.BlobToBytes(reader, 1));
     MapBackgroundInput.Source    = ImageManager.BytesToImage(ImageManager.BlobToBytes(reader, 2));
     BattleForegroundInput.Source = ImageManager.BytesToImage(ImageManager.BlobToBytes(reader, 3));
     BattleBackgroundInput.Source = ImageManager.BytesToImage(ImageManager.BlobToBytes(reader, 4));
     AccuracyInput.Text           = reader["Accuracy"].ToString();
     EvasionInput.Text            = reader["Evasion"].ToString();
     CriticalRateInput.Text       = reader["CriticalRate"].ToString();
     CritEvadeRateInput.Text      = reader["CritEvadeRate"].ToString();
 }
 protected override void OnRead(SQLiteDataReader reader)
 {
     Base.Read(reader);
     PassiveEffectAttributes.Read(reader);
     PassiveEffectRates.Read(reader);
     StatMods.Read(reader);
     HPMinInput.Text                   = reader["HPMin"].ToString();
     HPMaxInput.Text                   = reader["HPMax"].ToString();
     SPMinInput.Text                   = reader["SPMin"].ToString();
     SPMaxInput.Text                   = reader["SPMax"].ToString();
     AnyStateInput.IsChecked           = reader["AnyState"].ToString() == "True" ? true : false;
     NoStateInput.IsChecked            = reader["NoState"].ToString() == "True" ? true : false;
     StateActive1Input.SelectedIndex   = StateActive1Data.FindIndex(reader["StateActive1"]);
     StateActive2Input.SelectedIndex   = StateActive2Data.FindIndex(reader["StateActive2"]);
     StateInactive1Input.SelectedIndex = StateInactive1Data.FindIndex(reader["StateInactive1"]);
     StateInactive2Input.SelectedIndex = StateInactive2Data.FindIndex(reader["StateInactive2"]);
     ExpGainRateInput.Text             = reader["ExpGainRate"].ToString();
     GoldGainRateInput.Text            = reader["GoldGainRate"].ToString();
     AllyConditionInput.SelectedIndex  = int.Parse(reader["AllyCondition"].ToString());
     FoeConditionInput.SelectedIndex   = int.Parse(reader["FoeCondition"].ToString());
     UserConditionInput.SelectedIndex  = int.Parse(reader["UserCondition"].ToString());
 }