Changes related to ray-collision, and luprex global variable stuff
This commit is contained in:
@@ -357,17 +357,18 @@ public:
|
||||
|
||||
std::ostream *lthread_print_stream() const;
|
||||
|
||||
// Set a global variable.
|
||||
// Set a lua global variable.
|
||||
//
|
||||
// This will throw lua errors if there's a problem.
|
||||
// The table just stores strings, and the difference transmitter
|
||||
// just difference transmits those strings. The strings are meant
|
||||
// to be serialized lua data structures, but there is no enforcement
|
||||
// of that here.
|
||||
//
|
||||
void set_global(LuaCoreStack &LS0, const eng::string &gvar, LuaSlot value);
|
||||
void set_global(const eng::string &var, std::string_view value);
|
||||
|
||||
// Get the serialized value of a global variable.
|
||||
// Get a lua global variable.
|
||||
//
|
||||
// This accessor is used during difference transmission.
|
||||
//
|
||||
const eng::string &get_gvname_serial(const eng::string &gvar);
|
||||
const eng::string &get_global(const eng::string &var);
|
||||
|
||||
// Allocate a single ID.
|
||||
//
|
||||
@@ -491,14 +492,6 @@ public:
|
||||
//
|
||||
eng::string tangible_get_class(int64_t id) const;
|
||||
|
||||
// Store json in a global variable.
|
||||
//
|
||||
void set_global_json(const eng::string &gvar, const eng::string &json);
|
||||
|
||||
// Get a global variable as json.
|
||||
//
|
||||
eng::string get_global_json(const eng::string &gvar);
|
||||
|
||||
public:
|
||||
///////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -671,7 +664,6 @@ private:
|
||||
std::unique_ptr<eng::ostringstream> lthread_prints_;
|
||||
|
||||
friend class Tangible;
|
||||
friend void global_set(LuaCoreStack &LS0, const eng::string &gvar, LuaSlot value);
|
||||
friend int lfn_tangible_animate(lua_State *L);
|
||||
friend int lfn_tangible_build(lua_State *L);
|
||||
friend int lfn_tangible_redirect(lua_State *L);
|
||||
|
||||
Reference in New Issue
Block a user