X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FWorld.hpp;fp=src%2Fworld%2FWorld.hpp;h=cd631610a4367d261a0744aa0e78c7c1c6c29844;hb=68f47f2824989b21ff9a480a367a6d0a41804f41;hp=8d822501bd07735d8c2448f9ec6250989d16e9aa;hpb=d4c71969df4f6b5e6b750c98268d30ca6784908b;p=blank.git diff --git a/src/world/World.hpp b/src/world/World.hpp index 8d82250..cd63161 100644 --- a/src/world/World.hpp +++ b/src/world/World.hpp @@ -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 &Players() const noexcept { return players; } std::list &Entities() noexcept { return entities; }