]> git.localhorst.tv Git - blank.git/blobdiff - src/world/World.hpp
better control over entity update transmission
[blank.git] / src / world / World.hpp
index 8d822501bd07735d8c2448f9ec6250989d16e9aa..cd631610a4367d261a0744aa0e78c7c1c6c29844 100644 (file)
@@ -78,6 +78,9 @@ public:
        /// add entity with given ID
        /// returns nullptr if the ID is already taken
        Entity *AddEntity(std::uint32_t id);
+       /// add entity with given ID
+       /// returs an existing entity if ID is already taken
+       Entity &ForceAddEntity(std::uint32_t id);
 
        const std::vector<Player> &Players() const noexcept { return players; }
        std::list<Entity> &Entities() noexcept { return entities; }