public IEnumerable <IMapSpawnTable> Execute(MapID id)
        {
            var ret = new List <IMapSpawnTable>();

            using (var r = ExecuteReader(id))
            {
                while (r.Read())
                {
                    var values = new MapSpawnTable();
                    values.ReadValues(r);
                    ret.Add(values);
                }
            }

            return(ret);
        }
示例#2
0
        public IMapSpawnTable Execute(MapSpawnValuesID id)
        {
            MapSpawnTable ret;

            using (var r = ExecuteReader(id))
            {
                if (!r.Read())
                {
                    return(null);
                }

                ret = new MapSpawnTable();
                ret.ReadValues(r);
            }

            return(ret);
        }