/// <summary> /// 武器库数据读取和相关函数操作操作,读取武器库ExcelData /// </summary> public void ReadWeaponPropertyByExecl() { WeaponProPertyDic = ReadExcel.ReadWeaponProperty(); foreach (WeaponProperty data in WeaponProPertyDic.Values) { if (data.WeaponName == "手雷") { GrenadesId = data.Id; //保存手雷的ID } WeaponQueue.Add(data.Id); } }