A little cleanup, and some work on LpxClient
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user