public Tile[] Get()
        {
            var idManager = new DataIdManager ();
            var ids = idManager.GetIds(typeof(Tile));

            var tiles = new List<Tile> ();
            var reader = new TileReader ();
            foreach (Guid id in ids) {
                tiles.Add (reader.Read (id));
            }
            return tiles.ToArray();
        }
Exemple #2
0
        public Tile[] Get()
        {
            var idManager = new DataIdManager();
            var ids       = idManager.GetIds(typeof(Tile));

            var tiles  = new List <Tile> ();
            var reader = new TileReader();

            foreach (Guid id in ids)
            {
                tiles.Add(reader.Read(id));
            }
            return(tiles.ToArray());
        }