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:
@@ -989,25 +989,11 @@ public:
|
||||
//
|
||||
void setvisited(LuaSlot tab, bool visited) const;
|
||||
|
||||
// Store the world type in the registry.
|
||||
// Store whether the world is authoritative in the
|
||||
// registry. This is used to implement guard_nopredict.
|
||||
//
|
||||
// This just stores the enum value in the registry key "worldtype".
|
||||
//
|
||||
void set_world_type(WorldType t) const;
|
||||
void set_authoritative(bool auth) const;
|
||||
|
||||
// Return the world type from the registry.
|
||||
//
|
||||
// This just fetches the enum value from the registry key "worldtype".
|
||||
//
|
||||
WorldType get_world_type() const;
|
||||
|
||||
// Return true if this world is authoritative.
|
||||
//
|
||||
// This fetches the enum value from the registry key "worldtype",
|
||||
// then it checks if the world type is authoritative.
|
||||
//
|
||||
bool is_authoritative() { return util::is_authoritative(get_world_type()); }
|
||||
|
||||
// Yield this thread with zero if in a nonauth model, and not a probe.
|
||||
//
|
||||
// The function name is just used for generating better error messages.
|
||||
|
||||
Reference in New Issue
Block a user