using System.Collections.Generic; namespace Game { public interface IEquipment { string Name { get; } string Description { get; } EquipmentType Type { get; } List Stats { get; } List Effects { get; } } public class Equipment : IEquipment { private string _name; private string _description; private EquipmentType _type; private List _stats; private List _effects; public string Name => _name; // 装备名称 public string Description => _description; // 装备描述 public EquipmentType Type => _type; // 装备类型(基础装备、合成装备) public List Stats => _stats; // 装备的属性加成(攻击力、生命值等) public List Effects => _effects; // 装备附带的技能效果 public Equipment(string name, string description, EquipmentType type, List stats, List effects) { _name = name; _description = description; _type = type; _stats = stats; _effects = effects; } } }