Difference between revisions of "Scripting Whitelist"

From Space Engineers Wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__FORCETOC__
 
__FORCETOC__
Space Engineers restricts the types and methods you can use in scripts to stop programmers from creating dangrous mods or scripts that could compromise a user's computer or server. The following tables list what is allowed in [[Ingame Scripts]] and the [[Modding API]].
+
Space Engineers restricts the types and methods allowed in scripts to stop programmers from creating dangrous mods or scripts that could compromise a player's computer. The following tables list what is allowed in [[Ingame Scripts]] and the [[Modding API]].
  
 
* * means all types in the listed namespace are whitelisted.
 
* * means all types in the listed namespace are whitelisted.
Line 7: Line 7:
 
==Ingame and Mod Scripts==
 
==Ingame and Mod Scripts==
 
{| class="wikitable sortable" width="95%"
 
{| class="wikitable sortable" width="95%"
!style = "background-color:#ffffcc;" colspan = 2 | Ingame and Mod Scripts
+
!style = "background-color:#ffffcc;" colspan = 3 | Whitelist
 
|-
 
|-
!Fully Qualified Name !! Assembly
+
!Type (ModAPI, Ingame, Both) !! Fully Qualified Name !! Assembly
 
|-
 
|-
|System.Collections.* || mscorlib
+
|Both || System.Collections.* || mscorlib
 
|-
 
|-
|System.Collections.Generic.* || mscorlib
+
|Both || System.Collections.Generic.* || mscorlib
 
|-
 
|-
|System.Collections.Generic.* || System.Core
+
|Both || System.Collections.Generic.* || System.Core
 
|-
 
|-
|System.Collections.Generic.* || System
+
|Both || System.Collections.Generic.* || System
 
|-
 
|-
|System.Collections.Concurrent.* || mscorlib
+
|Both || System.Collections.Concurrent.* || mscorlib
 
|-
 
|-
|System.Collections.Concurrent.* || System
+
|Both || System.Collections.Concurrent.* || System
 
|-
 
|-
|System.Linq.* || System.Core
+
|Both || System.Linq.* || System.Core
 
|-
 
|-
|System.Text.* || mscorlib
+
|Both || System.Text.* || mscorlib
 
|-
 
|-
|System.Text.RegularExpressions.* || System
+
|Both || System.Text.RegularExpressions.* || System
 
|-
 
|-
|System.Globalization.* || mscorlib
+
|Both || System.Globalization.* || mscorlib
 
|-
 
|-
|object+* || mscorlib
+
|Both || object+* || mscorlib
 
|-
 
|-
|System.IDisposable+* || mscorlib
+
|Both || System.IDisposable+* || mscorlib
 
|-
 
|-
|string+* || mscorlib
+
|Both || string+* || mscorlib
 
|-
 
|-
|System.StringComparison+* || mscorlib
+
|Both || System.StringComparison+* || mscorlib
 
|-
 
|-
|System.Math+* || mscorlib
+
|Both || System.Math+* || mscorlib
 
|-
 
|-
|System.Enum+* || mscorlib
+
|Both || System.Enum+* || mscorlib
 
|-
 
|-
|int+* || mscorlib
+
|Both || int+* || mscorlib
 
|-
 
|-
|short+* || mscorlib
+
|Both || short+* || mscorlib
 
|-
 
|-
|long+* || mscorlib
+
|Both || long+* || mscorlib
 
|-
 
|-
|uint+* || mscorlib
+
|Both || uint+* || mscorlib
 
|-
 
|-
|ushort+* || mscorlib
+
|Both || ushort+* || mscorlib
 
|-
 
|-
|ulong+* || mscorlib
+
|Both || ulong+* || mscorlib
 
|-
 
|-
|double+* || mscorlib
+
|Both || double+* || mscorlib
 
|-
 
|-
|float+* || mscorlib
+
|Both || float+* || mscorlib
 
|-
 
|-
|bool+* || mscorlib
+
|Both || bool+* || mscorlib
 
|-
 
|-
|char+* || mscorlib
+
|Both || char+* || mscorlib
 
|-
 
|-
|byte+* || mscorlib
+
|Both || byte+* || mscorlib
 
|-
 
|-
|sbyte+* || mscorlib
+
|Both || sbyte+* || mscorlib
 
|-
 
|-
|decimal+* || mscorlib
+
|Both || decimal+* || mscorlib
 
|-
 
|-
|System.DateTime+* || mscorlib
+
|Both || System.DateTime+* || mscorlib
 
|-
 
|-
|System.TimeSpan+* || mscorlib
+
|Both || System.TimeSpan+* || mscorlib
 
|-
 
|-
|System.Array+* || mscorlib
+
|Both || System.Array+* || mscorlib
 
|-
 
|-
|System.Xml.Serialization.XmlElementAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlElementAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlAttributeAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlAttributeAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlArrayAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlArrayAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlArrayItemAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlArrayItemAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlAnyAttributeAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlAnyAttributeAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlAnyElementAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlAnyElementAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlAnyElementAttributes+* || System.Xml
+
|Both || System.Xml.Serialization.XmlAnyElementAttributes+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlArrayItemAttributes+* || System.Xml
+
|Both || System.Xml.Serialization.XmlArrayItemAttributes+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlAttributeEventArgs+* || System.Xml
+
|Both || System.Xml.Serialization.XmlAttributeEventArgs+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlAttributeOverrides+* || System.Xml
+
|Both || System.Xml.Serialization.XmlAttributeOverrides+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlAttributes+* || System.Xml
+
|Both || System.Xml.Serialization.XmlAttributes+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlChoiceIdentifierAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlChoiceIdentifierAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlElementAttributes+* || System.Xml
+
|Both || System.Xml.Serialization.XmlElementAttributes+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlElementEventArgs+* || System.Xml
+
|Both || System.Xml.Serialization.XmlElementEventArgs+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlEnumAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlEnumAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlIgnoreAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlIgnoreAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlIncludeAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlIncludeAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlRootAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlRootAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlTextAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlTextAttribute+* || System.Xml
 
|-
 
|-
|System.Xml.Serialization.XmlTypeAttribute+* || System.Xml
+
|Both || System.Xml.Serialization.XmlTypeAttribute+* || System.Xml
 
|-
 
|-
|System.Runtime.CompilerServices.RuntimeHelpers+* || mscorlib
+
|Both || System.Runtime.CompilerServices.RuntimeHelpers+* || mscorlib
 
|-
 
|-
|System.IO.Stream+* || mscorlib
+
|Both || System.IO.Stream+* || mscorlib
 
|-
 
|-
|System.IO.TextWriter+* || mscorlib
+
|Both || System.IO.TextWriter+* || mscorlib
 
|-
 
|-
|System.IO.TextReader+* || mscorlib
+
|Both || System.IO.TextReader+* || mscorlib
 
|-
 
|-
|System.IO.BinaryReader+* || mscorlib
+
|Both || System.IO.BinaryReader+* || mscorlib
 
|-
 
|-
|System.IO.BinaryWriter+* || mscorlib
+
|Both || System.IO.BinaryWriter+* || mscorlib
 
|-
 
|-
|System.NullReferenceException+* || mscorlib
+
|Both || System.NullReferenceException+* || mscorlib
 
|-
 
|-
|System.ArgumentException+* || mscorlib
+
|Both || System.ArgumentException+* || mscorlib
 
|-
 
|-
|System.ArgumentNullException+* || mscorlib
+
|Both || System.ArgumentNullException+* || mscorlib
 
|-
 
|-
|System.InvalidOperationException+* || mscorlib
+
|Both || System.InvalidOperationException+* || mscorlib
 
|-
 
|-
|System.FormatException+* || mscorlib
+
|Both || System.FormatException+* || mscorlib
 
|-
 
|-
|System.Exception+* || mscorlib
+
|Both || System.Exception+* || mscorlib
 
|-
 
|-
|System.DivideByZeroException+* || mscorlib
+
|Both || System.DivideByZeroException+* || mscorlib
 
|-
 
|-
|System.InvalidCastException+* || mscorlib
+
|Both || System.InvalidCastException+* || mscorlib
 
|-
 
|-
|System.IO.FileNotFoundException+* || mscorlib
+
|Both || System.IO.FileNotFoundException+* || mscorlib
 
|-
 
|-
|System.NotSupportedException+* || mscorlib
+
|Both || System.NotSupportedException+* || mscorlib
 
|-
 
|-
|System.Nullable<T>+* || mscorlib
+
|Both || System.Nullable<T>+* || mscorlib
 
|-
 
|-
|System.StringComparer+* || mscorlib
+
|Both || System.StringComparer+* || mscorlib
 
|-
 
|-
|System.IComparable<T>+* || mscorlib
+
|Both || System.IEquatable<T>+* || mscorlib
 
|-
 
|-
|System.BitConverter+* || mscorlib
+
|Both || System.IComparable+* || mscorlib
 
|-
 
|-
|System.FlagsAttribute+* || mscorlib
+
|Both || System.IComparable<T>+* || mscorlib
 
|-
 
|-
|System.IO.Path+* || mscorlib
+
|Both || System.BitConverter+* || mscorlib
 
|-
 
|-
|System.Random+* || mscorlib
+
|Both || System.FlagsAttribute+* || mscorlib
 
|-
 
|-
|System.Convert+* || mscorlib
+
|Both || System.IO.Path+* || mscorlib
 
|-
 
|-
|System.StringSplitOptions+* || mscorlib
+
|Both || System.Random+* || mscorlib
 
|-
 
|-
|System.DateTimeKind+* || mscorlib
+
|Both || System.Convert+* || mscorlib
 
|-
 
|-
|System.MidpointRounding+* || mscorlib
+
|Both || System.StringSplitOptions+* || mscorlib
 
|-
 
|-
|System.EventArgs+* || mscorlib
+
|Both || System.DateTimeKind+* || mscorlib
 
|-
 
|-
|System.Reflection.MemberInfo || mscorlib
+
|Both || System.MidpointRounding+* || mscorlib
 
|-
 
|-
|System.Reflection.MemberInfo.Name || mscorlib
+
|Both || System.EventArgs+* || mscorlib
 
|-
 
|-
|System.Type || mscorlib
+
|Both || System.Reflection.MemberInfo || mscorlib
 
|-
 
|-
|System.Type.FullName || mscorlib
+
|Both || System.Reflection.MemberInfo.Name || mscorlib
 
|-
 
|-
|System.Type.GetTypeFromHandle(System.RuntimeTypeHandle) || mscorlib
+
|Both || System.Type || mscorlib
 
|-
 
|-
|System.Type.GetFields(System.Reflection.BindingFlags) || mscorlib
+
|Both || System.Type.FullName || mscorlib
 
|-
 
|-
|System.Type.IsEquivalentTo(System.Type) || mscorlib
+
|Both || System.Type.GetTypeFromHandle(System.RuntimeTypeHandle) || mscorlib
 
|-
 
|-
|System.Type.operator ==(System.Type, System.Type) || mscorlib
+
|Both || System.Type.GetFields(System.Reflection.BindingFlags) || mscorlib
 
|-
 
|-
|System.Type.ToString() || mscorlib
+
|Both || System.Type.IsEquivalentTo(System.Type) || mscorlib
 
|-
 
|-
|System.ValueType || mscorlib
+
|Both || System.Type.operator ==(System.Type, System.Type) || mscorlib
 
|-
 
|-
|System.ValueType.Equals(object) || mscorlib
+
|Both || System.Type.ToString() || mscorlib
 
|-
 
|-
|System.ValueType.GetHashCode() || mscorlib
+
|Both || System.ValueType || mscorlib
 
|-
 
|-
|System.ValueType.ToString() || mscorlib
+
|Both || System.ValueType.Equals(object) || mscorlib
 
|-
 
|-
|System.Environment || mscorlib
+
|Both || System.ValueType.GetHashCode() || mscorlib
 
|-
 
|-
|System.Environment.CurrentManagedThreadId || mscorlib
+
|Both || System.ValueType.ToString() || mscorlib
 
|-
 
|-
|System.Environment.NewLine || mscorlib
+
|Both || System.Environment || mscorlib
 
|-
 
|-
|System.Environment.ProcessorCount || mscorlib
+
|Both || System.Environment.CurrentManagedThreadId || mscorlib
 
|-
 
|-
|System.RuntimeType || mscorlib
+
|Both || System.Environment.NewLine || mscorlib
 
|-
 
|-
|System.RuntimeType.operator !=(System.RuntimeType, System.RuntimeType) || mscorlib
+
|Both || System.Environment.ProcessorCount || mscorlib
 
|-
 
|-
|System.RuntimeType.GetFields(System.Reflection.BindingFlags) || mscorlib
+
|Both || System.RuntimeType || mscorlib
 
|-
 
|-
|SpaceEngineers.Game.ModAPI.Ingame.* || SpaceEngineers.Game
+
|Both || System.RuntimeType.operator !=(System.RuntimeType, System.RuntimeType) || mscorlib
 
|-
 
|-
|System.Collections.Generic.* || VRage.Library
+
|Both || System.RuntimeType.GetFields(System.Reflection.BindingFlags) || mscorlib
 
|-
 
|-
|VRage.Game.ModAPI.Ingame.* || VRage.Game
+
|ModApi || System.Timers.* || System
 
|-
 
|-
|Sandbox.ModAPI.Ingame.* || Sandbox.Common
+
|ModApi || System.Diagnostics.TraceEventType+* || System
 
|-
 
|-
|VRageMath.* || VRage.Math
+
|ModApi || System.Reflection.AssemblyProductAttribute+* || mscorlib
 
|-
 
|-
|Sandbox.Game.Gui.TerminalActionExtensions+* || Sandbox.Game
+
|ModApi || System.Reflection.AssemblyDescriptionAttribute+* || mscorlib
 
|-
 
|-
|Sandbox.ModAPI.Interfaces.ITerminalAction+* || Sandbox.Common
+
|ModApi || System.Reflection.AssemblyConfigurationAttribute+* || mscorlib
 
|-
 
|-
|Sandbox.ModAPI.Interfaces.ITerminalProperty+* || Sandbox.Common
+
|ModApi || System.Reflection.AssemblyCompanyAttribute+* || mscorlib
 
|-
 
|-
|Sandbox.ModAPI.Interfaces.ITerminalProperty<TValue>+* || Sandbox.Common
+
|ModApi || System.Reflection.AssemblyCultureAttribute+* || mscorlib
 
|-
 
|-
|Sandbox.ModAPI.Interfaces.TerminalPropertyExtensions+* || Sandbox.Common
+
|ModApi || System.Reflection.AssemblyVersionAttribute+* || mscorlib
 
|-
 
|-
|Sandbox.Game.Localization.MySpaceTexts+* || Sandbox.Game
+
|ModApi || System.Reflection.AssemblyFileVersionAttribute+* || mscorlib
 
|-
 
|-
|VRage.MyTexts+* || VRage
+
|ModApi || System.Reflection.AssemblyCopyrightAttribute+* || mscorlib
 
|-
 
|-
|VRage.MyFixedPoint+* || VRage.Library
+
|ModApi || System.Reflection.AssemblyTrademarkAttribute+* || mscorlib
 
|-
 
|-
|VRage.Game.Components.MyComponentContainer || VRage.Game
+
|ModApi || System.Reflection.AssemblyTitleAttribute+* || mscorlib
 
|-
 
|-
|VRage.Game.Components.MyComponentContainer.TryGet<T>(out T) || VRage.Game
+
|ModApi || System.Runtime.InteropServices.ComVisibleAttribute+* || mscorlib
 
|-
 
|-
|VRage.Game.Components.MyComponentContainer.Has<T>() || VRage.Game
+
|ModApi || System.ComponentModel.DefaultValueAttribute+* || System
 
|-
 
|-
|VRage.Game.Components.MyComponentContainer.Get<T>() || VRage.Game
+
|ModApi || System.SerializableAttribute+* || mscorlib
 
|-
 
|-
|VRage.Game.Components.MyComponentContainer.TryGet(System.Type, out VRage.Game.Components.MyComponentBase) || VRage.Game
+
|ModApi || System.Runtime.InteropServices.GuidAttribute+* || mscorlib
 
|-
 
|-
|}
+
|ModApi || System.Runtime.InteropServices.StructLayoutAttribute+* || mscorlib
==Mod Scripts==
 
{| class="wikitable sortable" width="95%"
 
!style = "background-color:#ffffcc;" colspan = 2 | Mod Scripts
 
|-
 
!Fully Qualified Name !! Assembly
 
|-
 
|VRage.Collections.ListReader<T>+* ||VRage.Library
 
|-
 
|VRage.Game.MyDefinitionId+* ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSourceComponentBase+* ||VRage.Game
 
|-
 
|VRage.Game.ObjectBuilders.Definitions.MyObjectBuilder_GasProperties+* ||VRage.Game
 
|-
 
|VRage.ObjectBuilders.MyObjectBuilder_Base+* ||VRage.Game
 
|-
 
|VRage.Game.Components.MyComponentBase+* ||VRage.Game
 
|-
 
|VRage.ObjectBuilders.SerializableDefinitionId+* ||VRage.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSourceComponent ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSourceComponent.CurrentOutput ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSourceComponent.MaxOutput ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSourceComponent.DefinedOutput ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSourceComponent.ProductionEnabled ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSourceComponent.RemainingCapacity ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSourceComponent.HasCapacityRemaining ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSinkComponent ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSinkComponent.AcceptedResources ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSinkComponent.RequiredInput ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSinkComponent.SuppliedRatio ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSinkComponent.CurrentInput ||Sandbox.Game
 
|-
 
|Sandbox.Game.EntityComponents.MyResourceSinkComponent.IsPowered ||Sandbox.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase.AcceptedResources ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase.CurrentInputByType(VRage.Game.MyDefinitionId) ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase.IsPowerAvailable(VRage.Game.MyDefinitionId, float) ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase.IsPoweredByType(VRage.Game.MyDefinitionId) ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase.MaxRequiredInputByType(VRage.Game.MyDefinitionId) ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase.RequiredInputByType(VRage.Game.MyDefinitionId) ||VRage.Game
 
|-
 
|VRage.Game.Components.MyResourceSinkComponentBase.SuppliedRatioByType(VRage.Game.MyDefinitionId) ||VRage.Game
 
|-
 
|}
 
==Ingame Scripts==
 
{| class="wikitable sortable" width="95%"
 
!style = "background-color:#ffffcc;" colspan = 2 | Ingame Scripts
 
|-
 
!Fully Qualified Name !! Assembly
 
|-
 
|System.Timers.* ||System
 
|-
 
|System.Diagnostics.TraceEventType+* ||System
 
|-
 
|System.Reflection.AssemblyProductAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyDescriptionAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyConfigurationAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyCompanyAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyCultureAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyVersionAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyFileVersionAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyCopyrightAttribute+* ||mscorlib
 
|-
 
|System.Reflection.AssemblyTrademarkAttribute+* ||mscorlib
 
|-
 
|System.SerializableAttribute+* ||mscorlib
 
|-
 
|SpaceEngineers.Game.ModAPI.* ||SpaceEngineers.Game
 
|-
 
|Sandbox.ModAPI.* ||Sandbox.Game
 
|-
 
|VRage.Game.ModAPI.* ||VRage.Game
 
|-
 
|Sandbox.ModAPI.* ||Sandbox.Common
 
|-
 
|VRage.Game.ModAPI.Interfaces.* ||VRage.Game
 
|-
 
|VRage.ModAPI.* ||VRage.Game
 
|-
 
|VRage.Game.Entity.* ||VRage.Game
 
|-
 
|Sandbox.Game.Entities.* ||Sandbox.Game
 
|-
 
|VRage.Game.* ||VRage.Game
 
|-
 
|Sandbox.Common.ObjectBuilders.* ||SpaceEngineers.ObjectBuilders
 
|-
 
|Sandbox.Common.ObjectBuilders.Definitions.* ||SpaceEngineers.ObjectBuilders
 
|-
 
|VRage.ObjectBuilders.* ||VRage.Game
 
|-
 
|VRage.Game.Components.* ||VRage.Game
 
|-
 
|Sandbox.Game.EntityComponents.* ||Sandbox.Game
 
|-
 
|VRage.Game.ObjectBuilders.* ||VRage.Game
 
|-
 
|Sandbox.Game.* ||Sandbox.Game
 
|-
 
|VRage.* ||VRage
 
|-
 
|Sandbox.Definitions.* ||Sandbox.Game
 
|-
 
|VRage.* ||VRage.Library
 
|-
 
|VRage.Collections.* ||VRage.Library
 
|-
 
|VRage.Voxels.* ||VRage
 
|-
 
|VRage.Utils.* ||VRage
 
|-
 
|VRage.Library.Utils.* ||VRage.Library
 
|-
 
|Sandbox.Game.Lights.* ||Sandbox.Game
 
|-
 
|Sandbox.ModAPI.Weapons.* ||Sandbox.Game
 
|-
 
|Sandbox.Engine.Utils.MySpectatorCameraController ||Sandbox.Game
 
|-
 
|Sandbox.Engine.Utils.MySpectatorCameraController.IsLightOn ||Sandbox.Game
 
|-
 
|VRage.ModAPI.* ||VRage.Input
 
|-
 
|VRage.Input.MyInputExtensions+* ||Sandbox.Game
 
|-
 
|VRage.Input.MyKeys+* ||VRage.Input
 
|-
 
|VRage.Input.MyJoystickAxesEnum+* ||VRage.Input
 
|-
 
|VRage.Input.MyJoystickButtonsEnum+* ||VRage.Input
 
|-
 
|VRage.Input.MyMouseButtonsEnum+* ||VRage.Input
 
|-
 
|VRage.Input.MySharedButtonsEnum+* ||VRage.Input
 
|-
 
|VRage.Input.MyGuiControlTypeEnum+* ||VRage.Input
 
|-
 
|VRage.Input.MyGuiInputDeviceEnum+* ||VRage.Input
 
|-
 
|VRageRender.MyLodTypeEnum+* ||VRage
 
|-
 
|ProtoBuf.ProtoMemberAttribute+* ||VRage.Library
 
|-
 
|ProtoBuf.ProtoContractAttribute+* ||VRage.Library
 
|-
 
|VRageRender.Lights.MyGlareTypeEnum+* ||VRage
 
|-
 
|VRage.Serialization.SerializableDictionary<T, U>+* ||VRage
 
|-
 
|ParallelTasks.IWork+* ||VRage.Library
 
 
|-
 
|-
|ParallelTasks.Task+* ||VRage.Library
+
|ModApi || System.Runtime.InteropServices.LayoutKind+* || mscorlib
 
|-
 
|-
|ParallelTasks.WorkOptions+* ||VRage.Library
+
|ModApi || System.Guid+* || mscorlib
 
|-
 
|-
 
|}
 
|}

Latest revision as of 08:47, 6 January 2017

Space Engineers restricts the types and methods allowed in scripts to stop programmers from creating dangrous mods or scripts that could compromise a player's computer. The following tables list what is allowed in Ingame Scripts and the Modding API.

  • * means all types in the listed namespace are whitelisted.
  • + means all members of the listed type are whitelisted. If a type doesn't have this symbol the allowed members can be found elsewhere in the list.

Ingame and Mod Scripts

Whitelist
Type (ModAPI, Ingame, Both) Fully Qualified Name Assembly
Both System.Collections.* mscorlib
Both System.Collections.Generic.* mscorlib
Both System.Collections.Generic.* System.Core
Both System.Collections.Generic.* System
Both System.Collections.Concurrent.* mscorlib
Both System.Collections.Concurrent.* System
Both System.Linq.* System.Core
Both System.Text.* mscorlib
Both System.Text.RegularExpressions.* System
Both System.Globalization.* mscorlib
Both object+* mscorlib
Both System.IDisposable+* mscorlib
Both string+* mscorlib
Both System.StringComparison+* mscorlib
Both System.Math+* mscorlib
Both System.Enum+* mscorlib
Both int+* mscorlib
Both short+* mscorlib
Both long+* mscorlib
Both uint+* mscorlib
Both ushort+* mscorlib
Both ulong+* mscorlib
Both double+* mscorlib
Both float+* mscorlib
Both bool+* mscorlib
Both char+* mscorlib
Both byte+* mscorlib
Both sbyte+* mscorlib
Both decimal+* mscorlib
Both System.DateTime+* mscorlib
Both System.TimeSpan+* mscorlib
Both System.Array+* mscorlib
Both System.Xml.Serialization.XmlElementAttribute+* System.Xml
Both System.Xml.Serialization.XmlAttributeAttribute+* System.Xml
Both System.Xml.Serialization.XmlArrayAttribute+* System.Xml
Both System.Xml.Serialization.XmlArrayItemAttribute+* System.Xml
Both System.Xml.Serialization.XmlAnyAttributeAttribute+* System.Xml
Both System.Xml.Serialization.XmlAnyElementAttribute+* System.Xml
Both System.Xml.Serialization.XmlAnyElementAttributes+* System.Xml
Both System.Xml.Serialization.XmlArrayItemAttributes+* System.Xml
Both System.Xml.Serialization.XmlAttributeEventArgs+* System.Xml
Both System.Xml.Serialization.XmlAttributeOverrides+* System.Xml
Both System.Xml.Serialization.XmlAttributes+* System.Xml
Both System.Xml.Serialization.XmlChoiceIdentifierAttribute+* System.Xml
Both System.Xml.Serialization.XmlElementAttributes+* System.Xml
Both System.Xml.Serialization.XmlElementEventArgs+* System.Xml
Both System.Xml.Serialization.XmlEnumAttribute+* System.Xml
Both System.Xml.Serialization.XmlIgnoreAttribute+* System.Xml
Both System.Xml.Serialization.XmlIncludeAttribute+* System.Xml
Both System.Xml.Serialization.XmlRootAttribute+* System.Xml
Both System.Xml.Serialization.XmlTextAttribute+* System.Xml
Both System.Xml.Serialization.XmlTypeAttribute+* System.Xml
Both System.Runtime.CompilerServices.RuntimeHelpers+* mscorlib
Both System.IO.Stream+* mscorlib
Both System.IO.TextWriter+* mscorlib
Both System.IO.TextReader+* mscorlib
Both System.IO.BinaryReader+* mscorlib
Both System.IO.BinaryWriter+* mscorlib
Both System.NullReferenceException+* mscorlib
Both System.ArgumentException+* mscorlib
Both System.ArgumentNullException+* mscorlib
Both System.InvalidOperationException+* mscorlib
Both System.FormatException+* mscorlib
Both System.Exception+* mscorlib
Both System.DivideByZeroException+* mscorlib
Both System.InvalidCastException+* mscorlib
Both System.IO.FileNotFoundException+* mscorlib
Both System.NotSupportedException+* mscorlib
Both System.Nullable<T>+* mscorlib
Both System.StringComparer+* mscorlib
Both System.IEquatable<T>+* mscorlib
Both System.IComparable+* mscorlib
Both System.IComparable<T>+* mscorlib
Both System.BitConverter+* mscorlib
Both System.FlagsAttribute+* mscorlib
Both System.IO.Path+* mscorlib
Both System.Random+* mscorlib
Both System.Convert+* mscorlib
Both System.StringSplitOptions+* mscorlib
Both System.DateTimeKind+* mscorlib
Both System.MidpointRounding+* mscorlib
Both System.EventArgs+* mscorlib
Both System.Reflection.MemberInfo mscorlib
Both System.Reflection.MemberInfo.Name mscorlib
Both System.Type mscorlib
Both System.Type.FullName mscorlib
Both System.Type.GetTypeFromHandle(System.RuntimeTypeHandle) mscorlib
Both System.Type.GetFields(System.Reflection.BindingFlags) mscorlib
Both System.Type.IsEquivalentTo(System.Type) mscorlib
Both System.Type.operator ==(System.Type, System.Type) mscorlib
Both System.Type.ToString() mscorlib
Both System.ValueType mscorlib
Both System.ValueType.Equals(object) mscorlib
Both System.ValueType.GetHashCode() mscorlib
Both System.ValueType.ToString() mscorlib
Both System.Environment mscorlib
Both System.Environment.CurrentManagedThreadId mscorlib
Both System.Environment.NewLine mscorlib
Both System.Environment.ProcessorCount mscorlib
Both System.RuntimeType mscorlib
Both System.RuntimeType.operator !=(System.RuntimeType, System.RuntimeType) mscorlib
Both System.RuntimeType.GetFields(System.Reflection.BindingFlags) mscorlib
ModApi System.Timers.* System
ModApi System.Diagnostics.TraceEventType+* System
ModApi System.Reflection.AssemblyProductAttribute+* mscorlib
ModApi System.Reflection.AssemblyDescriptionAttribute+* mscorlib
ModApi System.Reflection.AssemblyConfigurationAttribute+* mscorlib
ModApi System.Reflection.AssemblyCompanyAttribute+* mscorlib
ModApi System.Reflection.AssemblyCultureAttribute+* mscorlib
ModApi System.Reflection.AssemblyVersionAttribute+* mscorlib
ModApi System.Reflection.AssemblyFileVersionAttribute+* mscorlib
ModApi System.Reflection.AssemblyCopyrightAttribute+* mscorlib
ModApi System.Reflection.AssemblyTrademarkAttribute+* mscorlib
ModApi System.Reflection.AssemblyTitleAttribute+* mscorlib
ModApi System.Runtime.InteropServices.ComVisibleAttribute+* mscorlib
ModApi System.ComponentModel.DefaultValueAttribute+* System
ModApi System.SerializableAttribute+* mscorlib
ModApi System.Runtime.InteropServices.GuidAttribute+* mscorlib
ModApi System.Runtime.InteropServices.StructLayoutAttribute+* mscorlib
ModApi System.Runtime.InteropServices.LayoutKind+* mscorlib
ModApi System.Guid+* mscorlib