The BSEngineSettings object exist, to make creating engine instances easier.
To Create an Engine Settings object with the default values use BSEngineSettings.MakeDefault
.
Optionally, BSParserSettings can be supplied to the MakeDefault method. If no parser settings are specified, BSParserSettings.Default
will be used.
BSParserSettings parserSettings = BSParserSettings.Default;
BSEngineSettings settings = BSEngineSettings.MakeDefault(parserSettings);
By Default there are 3 interfaces that are loaded on start:
When Building the Engine Instance with BSEngineSettings.Build
, there is an optional parameter that changes wether the Environment Interface will be added to that instance. Disabling access to the Environment
Interface effectively locks down the runtime so that no other interfaces can be loaded and no new scripts can be executed.
The BSEngineSettings.IncludeDirectories
property is a list of directories that contain scripts that get loaded during creation of the BSEngine Instance.
By Default this list is empty.
A list of all ABSScriptInterface
Instances that will be available to be loaded inside the BSEngine Instance
By Default this list is empty and needs to be filled with the desired ABSScriptInterface implementations before building.
A list of all Interface names that will be loaded by default.
By Default there are 3 Interfaces that will be loaded on creation.
Prefixing a name with #
will result in the interface beeing loaded in global scope.
Console
Gets Loaded into seperate table with name Console
Console.WriteLine("Hello World")
Console.Clear()
#Console
Gets loaded directly into global scope.
WriteLine("Hello World")
Clear()