/// <summary>BleachCharacterの値を設定します。</summary> /// <param name="source">値の設定元を表すBleachCharacter。</param> public void SetCharacter(BleachCharacter source) { this.Code.Value = source.Code.Value; this.Name.Value = source.Name.Value; this.Yomigana.Value = source.Yomigana.Value; this.Zanpakuto.Value = source.Zanpakuto.Value; this.Bankai.Value = source.Bankai.Value; }
/// <summary>BLEACHキャラクターの値を設定します。</summary> /// <param name="target">設定先のBleachCharacter。</param> public void SetCharacterValues(BleachCharacter target) { var bleachChara = this.GetCharacter(target.Code.Value); if (bleachChara == null) { target.ClearValues(); } else { target.SetCharacter(bleachChara); } }