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

@@ -33,11 +33,6 @@
#include "spookyv2.hpp"
enum WorldType {
WORLD_TYPE_MASTER = 1,
WORLD_TYPE_PREDICTIVE = 2,
};
namespace sv {
@@ -355,9 +350,6 @@ double distance_squared(double x1, double y1, double x2, double y2);
// Make a LuaSourceVec with one element, for unit testing.
LuaSourcePtr make_lua_source(const eng::string &code);
// Return true if the worldtype is authoritative.
inline bool is_authoritative(WorldType t) { return (t == WORLD_TYPE_MASTER); }
// Remove items from a vector that are nullptr.
template<class T>
void remove_nullptrs(T &vec) {