djkrose / 7DTD-ScriptingMod

Adds scripting support and other useful functionality to 7 Days To Die dedicated server
19 stars 10 forks source link

Cache event/command scripts #31

Open kylesmyrk opened 6 years ago

kylesmyrk commented 6 years ago

To avoid relying on resetting a single engine upon script invocation, you could instead cache scripts as objects, and assign each their own engine (doubtful on any significant performance hits).

You could then interact directly with a script object instead. A basic advantage of this would be the ability to limit CLR access based on script type.