Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone scripts #514

Open
CrosRoad95 opened this issue Apr 6, 2024 · 0 comments
Open

Standalone scripts #514

CrosRoad95 opened this issue Apr 6, 2024 · 0 comments

Comments

@CrosRoad95
Copy link
Collaborator

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:
image

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

@CrosRoad95 CrosRoad95 added this to the Slipe Server Scripting milestone Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant