예제 #1
0
파일: Currency.cs 프로젝트: HL971/Gemstone
        public void Merge(Currency addition)
        {
            TenLbGoldBar  += addition.TenLbGoldBar;
            FiveLbGoldBar += addition.FiveLbGoldBar;
            TwoLbGoldBar  += addition.TwoLbGoldBar;
            OneLbGoldBar  += addition.OneLbGoldBar;

            TenLbSilverBar  += addition.TenLbSilverBar;
            FiveLbSilverBar += addition.FiveLbSilverBar;
            TwoLbSilverBar  += addition.TwoLbSilverBar;
            OneLbSilverBar  += addition.OneLbSilverBar;

            PlatinumCoins += addition.PlatinumCoins;
            GoldCoins     += addition.GoldCoins;
            ElectrumCoins += addition.ElectrumCoins;
            SilverCoins   += addition.SilverCoins;
            CopperCoins   += addition.CopperCoins;

            Gems.AddRange(addition.Gems);
        }