/// <summary> /// Returns first matching stance based on given parameters, /// defaults to 10000 if no stances were found. /// </summary> /// <param name="jobId"></param> /// <param name="riding"></param> /// <param name="rightHand"></param> /// <param name="leftHand"></param> /// <returns></returns> public int FindStanceId(JobId jobId, bool riding, EquipType rightHand, EquipType leftHand) { var data = this.Entries.FirstOrDefault(a => a.JobId == jobId && a.Riding == riding && a.RightHand == rightHand && a.LeftHand == leftHand); if (data == null) { switch (jobId.ToClass()) { default: case Class.Swordsman: return(10000); case Class.Wizard: return(10006); case Class.Archer: return(10008); case Class.Cleric: case Class.GM: return(10004); } } return(data.StanceId); }