Difference between revisions of "Scripting Whitelist"

From Space Engineers Wiki
Jump to: navigation, search
 
Line 30: Line 30:
 
|-
 
|-
 
|Both || System.Globalization.* ||  mscorlib
 
|Both || System.Globalization.* ||  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
 
 
|-
 
|-
 
|Both || object+* ||  mscorlib
 
|Both || object+* ||  mscorlib
Line 227: Line 189:
 
|Both || System.Type.IsEquivalentTo(System.Type) ||  mscorlib
 
|Both || System.Type.IsEquivalentTo(System.Type) ||  mscorlib
 
|-
 
|-
|Both || System.Type.operator ==(System.Type, System.Type) ||   
+
|Both || System.Type.operator ==(System.Type, System.Type) ||  mscorlib
 
|-
 
|-
 
|Both || System.Type.ToString() ||  mscorlib
 
|Both || System.Type.ToString() ||  mscorlib
Line 249: Line 211:
 
|Both || System.RuntimeType ||  mscorlib
 
|Both || System.RuntimeType ||  mscorlib
 
|-
 
|-
|Both || System.RuntimeType.operator !=(System.RuntimeType, System.RuntimeType) ||  
+
|Both || System.RuntimeType.operator !=(System.RuntimeType, System.RuntimeType) || mscorlib
 
|-
 
|-
 
|Both || System.RuntimeType.GetFields(System.Reflection.BindingFlags) ||  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
 
|-
 
|-
 
|}
 
|}

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