Refactor: remove references to class World from util and luastack. These are low-level modules that should not reference class World.
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
#include "source.hpp"
|
||||
#include "luasnap.hpp"
|
||||
|
||||
enum WorldType {
|
||||
WORLD_TYPE_MASTER = 1,
|
||||
WORLD_TYPE_PREDICTIVE = 2,
|
||||
};
|
||||
|
||||
class World;
|
||||
|
||||
class Tangible : public eng::opnew {
|
||||
@@ -313,7 +318,7 @@ public:
|
||||
|
||||
// Check if the world is authoritative.
|
||||
//
|
||||
bool is_authoritative() const { return util::is_authoritative(world_type_); }
|
||||
bool is_authoritative() const { return world_type_ == WORLD_TYPE_MASTER; }
|
||||
|
||||
// Get a table showing all outstanding HTTP requests.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user