/// <summary> /// 根据地图ID,和Area名字选择合适Zone /// </summary> /// <param name="serverGroupID"></param> /// <param name="condition">必要条件</param> /// <param name="expect">可选条件</param> /// <returns></returns> protected ZoneInfo LookingForExpectServerGroupZone(string serverGroupID, Predicate <ZoneInfo> condition, Comparison <ZoneInfo> expect = null) { Dictionary <string, ZoneInfo> map = zones.GetZoneMap(serverGroupID); if (map != null) { var zones = new List <ZoneInfo>(map.Values); return(LookingForExpectZone(zones, condition, expect)); } return(null); }