Skip to content

Standalone scripts #514

@CrosRoad95

Description

@CrosRoad95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions