Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Small oversight fixed in order to support the mockup project at https…
Browse files Browse the repository at this point in the history
  • Loading branch information
Malware committed Mar 24, 2018
1 parent aad6991 commit 1c0a503
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/MDK/MDKPackage.GeneratedInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public partial class MDKPackage
/// <summary>
/// The current package version
/// </summary>
public static readonly Version Version = new Version("1.0.13");
public static readonly Version Version = new Version("1.0.14");

/// <summary>
/// Determines whether this version is a prerelease version
Expand Down
2 changes: 1 addition & 1 deletion Source/MDK/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="MDK.Morten Aune Lyrstad.e02b602e-3099-44a5-88c6-cb30cab978f6" Version="1.0.13" Language="en-US" Publisher="Morten Aune Lyrstad" />
<Identity Id="MDK.Morten Aune Lyrstad.e02b602e-3099-44a5-88c6-cb30cab978f6" Version="1.0.14" Language="en-US" Publisher="Morten Aune Lyrstad" />
<DisplayName>MDK/SE</DisplayName>
<Description xml:space="preserve">A toolkit to help with ingame script (programmable block) development for Keen Software House's space sandbox Space Engineers.

Expand Down
2 changes: 1 addition & 1 deletion Source/MDKServices/ProjectScriptInfo.GeneratedInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ partial class ProjectScriptInfo
/// <summary>
/// The current package version this utility assembly targets
/// </summary>
public static readonly Version TargetPackageVersion = new Version("1.0.13");
public static readonly Version TargetPackageVersion = new Version("1.0.14");
}
}
7 changes: 7 additions & 0 deletions Source/MDKUtilities/MDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -120,6 +122,11 @@ public struct ProgramConfig
/// </summary>
public IMyProgrammableBlock ProgrammableBlock;

/// <summary>
/// The grid terminal system which is to be made available for the running program
/// </summary>
public IMyGridTerminalSystem GridTerminalSystem;

/// <summary>
/// A custom runtime instance
/// </summary>
Expand Down

0 comments on commit 1c0a503

Please sign in to comment.