1 #ifndef BLOBS_WORLD_TILESET_HPP_
2 #define BLOBS_WORLD_TILESET_HPP_
19 TileSet(const TileSet &) = delete;
20 TileSet &operator =(const TileSet &) = delete;
22 TileSet(TileSet &&) = delete;
23 TileSet &operator =(TileSet &&) = delete;
26 int Add(const TileType &);
28 TileType &operator [](int id) noexcept { return types[id]; }
29 const TileType &operator [](int id) const noexcept { return types[id]; }
31 TileType &operator [](const std::string &name);
32 const TileType &operator [](const std::string &name) const;
35 std::vector<TileType> types;
36 std::map<std::string, int> names;