]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Set.hpp
test asset loading
[blobs.git] / src / world / Set.hpp
index af4d8a242959c166b95af639c6413bf8a81ff908..ce832ac06d9cadbe65bc29204db617c3ab46af28 100644 (file)
@@ -25,6 +25,8 @@ public:
        bool Has(int id) const noexcept { return id < types.size(); }
        bool Has(const std::string &name) const noexcept { return names.find(name) != names.end(); }
 
+       typename std::vector<Type>::size_type Size() const noexcept { return types.size(); }
+
        Type &operator [](int id) noexcept { return types[id]; }
        const Type &operator [](int id) const noexcept { return types[id]; }