A little cleanup, and some work on LpxClient

This commit is contained in:
2021-10-15 13:51:32 -04:00
parent 2e05df7ac5
commit b7b4ad8577
7 changed files with 46 additions and 21 deletions

View File

@@ -75,6 +75,8 @@ public:
void configure_id_pool_for_actor() { id_player_pool_.set_fifo_capacity(20); }
};
using UniqueTangible = std::unique_ptr<Tangible>;
class World {
public:
using IdVector = util::IdVector;
@@ -415,7 +417,7 @@ private:
// Tangibles table.
//
std::unordered_map<int64_t, std::unique_ptr<Tangible>> tangibles_;
std::unordered_map<int64_t, UniqueTangible> tangibles_;
// Thread schedule: must include every thread, except
// for the one currently-executing thread.
@@ -443,4 +445,7 @@ private:
friend int lfn_tangible_place(lua_State *L);
};
using UniqueWorld = std::unique_ptr<World>;
#endif // WORLD_HPP