コード例 #1
0
ファイル: Form1.cs プロジェクト: yi520520/hearthstone-ai
        private string GetEnchantmentsText(Board.Enchantments enchantments)
        {
            string result = "[Enchantments]" + Environment.NewLine;

            foreach (var enchant in enchantments)
            {
                result += "   " + enchant.card_id + " Creator: " + enchant.creator_entity_id.ToString() + Environment.NewLine;
            }
            return(result);
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            Enchantments rhs = obj as Enchantments;

            if (rhs == null)
            {
                return(false);
            }
            return(this.SequenceEqual(rhs));
        }