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:
2026-02-21 21:42:53 -05:00
parent 7e7f9bf147
commit e9d185acb0
5 changed files with 21 additions and 43 deletions

View File

@@ -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.
//