コード例 #1
0
        public static BaseEntity GetFirstMatch(Zone.EntityFilter filter)
        {
            List <BaseEntity> list = GetAllThatMatch(filter);

            if (list.Count == 0)
            {
                return(null);
            }

            return(list[0]);
        }
コード例 #2
0
        public static List <BaseEntity> GetAllThatMatch(Zone.EntityFilter filter)
        {
            List <BaseEntity> list = new List <BaseEntity>();

            foreach (var zone in ZoneMaps)
            {
                list.AddRange(zone.GetAllThatMatch(filter).ToArray());
            }

            return(list);
        }