Add missile launcher and missile controller projects
[SEScripts.git] / MissileLauncher / MDK / Bootstrapper.cs
diff --git a/MissileLauncher/MDK/Bootstrapper.cs b/MissileLauncher/MDK/Bootstrapper.cs
new file mode 100644 (file)
index 0000000..dd86886
--- /dev/null
@@ -0,0 +1,27 @@
+using Malware.MDKUtilities;
+
+namespace IngameScript.MDK
+{
+    public class TestBootstrapper
+    {
+        // All the files in this folder, as well as all files containing the file ".debug.", will be excluded
+        // from the build process. You can use this to create utilites for testing your scripts directly in 
+        // Visual Studio.
+
+        static TestBootstrapper()
+        {
+            // Initialize the MDK utility framework
+            MDKUtilityFramework.Load();
+        }
+
+        public static void Main()
+        {
+            // In order for your program to actually run, you will need to provide a mockup of all the facilities 
+            // your script uses from the game, since they're not available outside of the game.
+
+            // Create and configure the desired program.
+            var program = MDKFactory.CreateProgram<Program>();
+            MDKFactory.Run(program);
+        }
+    }
+}
\ No newline at end of file