diff --git a/DepthsBelow/DepthsBelow/Lua.cs b/DepthsBelow/DepthsBelow/Lua.cs index d1ff5f0..618636f 100755 --- a/DepthsBelow/DepthsBelow/Lua.cs +++ b/DepthsBelow/DepthsBelow/Lua.cs @@ -105,6 +105,16 @@ namespace DepthsBelow "); } + public LuaInterface.LuaFunction Expose(string path, object target, System.Reflection.MethodBase function) + { + return lua.RegisterFunction(path, target, function); + } + + public void Expose(string path, object obj) + { + lua[path] = obj; + } + public void ResetContext() { if (lua != null)