Class MyVRageIngameScriptingAdapter
Allows mods change programmable block script settings
Inheritance
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public class MyVRageIngameScriptingAdapter : Object, IMyIngameScripting, IMyScriptBlacklist
Constructors
MyVRageIngameScriptingAdapter(IMyIngameScripting)
Implements MyVRageIngameScriptingAdapter constructor
Declaration
public MyVRageIngameScriptingAdapter(IMyIngameScripting impl)
Parameters
Type | Name | Description |
---|---|---|
VRage.Scripting.IMyIngameScripting | impl | script settings |
Properties
ScriptBlacklist
Provides the ability for mods to add and remove items from a type and member blacklist, giving the ability to remove even more API for scripts. Intended for server admins to restrict what people are able to do with scripts to keep their simspeed up.
Declaration
public IMyScriptBlacklist ScriptBlacklist { get; }
Property Value
Type | Description |
---|---|
IMyScriptBlacklist |
Methods
Clean()
Clears all ScriptBlacklist changes
Declaration
public void Clean()
GetBlacklistedIngameEntries()
Gets the entries that have been blacklisted for the ingame scripts.
Declaration
public HashSetReader<string> GetBlacklistedIngameEntries()
Returns
Type | Description |
---|---|
HashSetReader<System.String> | Hashset reader of namespaces that were whitelisted |
GetWhitelist()
Gets information about whitelisted classes and methods
Declaration
public DictionaryReader<string, MyWhitelistTarget> GetWhitelist()
Returns
Type | Description |
---|---|
DictionaryReader<System.String, VRage.Scripting.MyWhitelistTarget> | Dictionary reader, where key - name of namespace, type of method, and value - in which context it is allowed |
OpenIngameBlacklistBatch()
Opens a batch to add or remove members to the blacklist.
Declaration
public IMyScriptBlacklistBatch OpenIngameBlacklistBatch()
Returns
Type | Description |
---|---|
IMyScriptBlacklistBatch | Object allowing you change blacklisted members/types/namespaces. |