You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I call it "standalone script" because they are just freerly running script in different languages ( lua for now ).
An idea is to create simple api to sandbox untrusted code into class.
In this basic example, lua code Test() it automatically bound to c# Test method:
LuaScript ( base ScriptBase class ) will be language agnostic and will provide methods to set/get globals, add functions, call functions and other.
Attribute "NotMapped" added to method will exclude method from automatic binding to script.
Scripts like that should be possible to cancel, aborted, make possible to stop them at any time because it may be code that is running by player
The text was updated successfully, but these errors were encountered:
I call it "standalone script" because they are just freerly running script in different languages ( lua for now ).
An idea is to create simple api to sandbox untrusted code into class.
In this basic example, lua code
Test()
it automatically bound to c#Test
method:LuaScript ( base ScriptBase class ) will be language agnostic and will provide methods to set/get globals, add functions, call functions and other.
Attribute "NotMapped" added to method will exclude method from automatic binding to script.
Scripts like that should be possible to cancel, aborted, make possible to stop them at any time because it may be code that is running by player
The text was updated successfully, but these errors were encountered: