diff --git a/Source/MDK/MDKPackage.GeneratedInfo.cs b/Source/MDK/MDKPackage.GeneratedInfo.cs index 5be9c34..aa35161 100644 --- a/Source/MDK/MDKPackage.GeneratedInfo.cs +++ b/Source/MDK/MDKPackage.GeneratedInfo.cs @@ -8,7 +8,7 @@ public partial class MDKPackage /// /// The current package version /// - public static readonly Version Version = new Version("1.0.13"); + public static readonly Version Version = new Version("1.0.14"); /// /// Determines whether this version is a prerelease version diff --git a/Source/MDK/source.extension.vsixmanifest b/Source/MDK/source.extension.vsixmanifest index 0d5a87b..6c044ba 100644 --- a/Source/MDK/source.extension.vsixmanifest +++ b/Source/MDK/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + MDK/SE A toolkit to help with ingame script (programmable block) development for Keen Software House's space sandbox Space Engineers. diff --git a/Source/MDKServices/ProjectScriptInfo.GeneratedInfo.cs b/Source/MDKServices/ProjectScriptInfo.GeneratedInfo.cs index 37d04fd..16132e9 100644 --- a/Source/MDKServices/ProjectScriptInfo.GeneratedInfo.cs +++ b/Source/MDKServices/ProjectScriptInfo.GeneratedInfo.cs @@ -7,6 +7,6 @@ partial class ProjectScriptInfo /// /// The current package version this utility assembly targets /// - public static readonly Version TargetPackageVersion = new Version("1.0.13"); + public static readonly Version TargetPackageVersion = new Version("1.0.14"); } } diff --git a/Source/MDKUtilities/MDK.cs b/Source/MDKUtilities/MDK.cs index 389f519..e574ac4 100644 --- a/Source/MDKUtilities/MDK.cs +++ b/Source/MDKUtilities/MDK.cs @@ -4,6 +4,7 @@ using System.Runtime.Serialization; using Sandbox.ModAPI; using Sandbox.ModAPI.Ingame; +using IMyGridTerminalSystem = Sandbox.ModAPI.Ingame.IMyGridTerminalSystem; using IMyProgrammableBlock = Sandbox.ModAPI.Ingame.IMyProgrammableBlock; namespace Malware.MDKUtilities @@ -67,6 +68,7 @@ public static void DefaultEcho(string text) instance.Storage = config.Storage ?? ""; instance.Me = config.ProgrammableBlock; instance.Echo = config.Echo ?? DefaultEcho; + instance.GridTerminalSystem = config.GridTerminalSystem; constructor.Invoke(instance, null); if (!instance.HasMainMethod) throw new ArgumentException(Resources.MDK_CreateProgram_NoMainMethod, nameof(type)); @@ -120,6 +122,11 @@ public struct ProgramConfig /// public IMyProgrammableBlock ProgrammableBlock; + /// + /// The grid terminal system which is to be made available for the running program + /// + public IMyGridTerminalSystem GridTerminalSystem; + /// /// A custom runtime instance ///