/// <summary> /// 装备 /// </summary> /// <param name="weaponId">武器标识</param> public void Equip(WeaponId weaponId) { WeaponId = weaponId; }
public Weapon Get(WeaponId id) { return(_weapons.Single(it => it.Id.Equals(id))); }