X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FWorld.hpp;h=cd631610a4367d261a0744aa0e78c7c1c6c29844;hb=8507332e2d0c54aec4045fb6f0021bdc3bd57750;hp=8d822501bd07735d8c2448f9ec6250989d16e9aa;hpb=13e676a6e49128ebc6c63b8dd08bef51d360e8e9;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; }