From 262b42f3a79ce6465bdcba2d86da3967ba49ffb4 Mon Sep 17 00:00:00 2001 From: Robin Sonneveld Date: Sun, 7 Jun 2020 13:51:39 +0200 Subject: [PATCH] Initial commit --- Ray2Mod_NewProject.sln | 25 +++++++++ Ray2Mod_NewProject/NewRay2Mod.cs | 31 +++++++++++ Ray2Mod_NewProject/Properties/AssemblyInfo.cs | 36 +++++++++++++ Ray2Mod_NewProject/Ray2Mod_NewProject.csproj | 53 +++++++++++++++++++ 4 files changed, 145 insertions(+) create mode 100644 Ray2Mod_NewProject.sln create mode 100644 Ray2Mod_NewProject/NewRay2Mod.cs create mode 100644 Ray2Mod_NewProject/Properties/AssemblyInfo.cs create mode 100644 Ray2Mod_NewProject/Ray2Mod_NewProject.csproj diff --git a/Ray2Mod_NewProject.sln b/Ray2Mod_NewProject.sln new file mode 100644 index 0000000..c58da85 --- /dev/null +++ b/Ray2Mod_NewProject.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.271 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ray2Mod_NewProject", "Ray2Mod_NewProject\Ray2Mod_NewProject.csproj", "{DF69CA3F-1DA9-44AB-AF72-4128313A1DEC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DF69CA3F-1DA9-44AB-AF72-4128313A1DEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DF69CA3F-1DA9-44AB-AF72-4128313A1DEC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DF69CA3F-1DA9-44AB-AF72-4128313A1DEC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DF69CA3F-1DA9-44AB-AF72-4128313A1DEC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9F34C5C5-EE2D-4EB4-B561-0049B5BA6EE0} + EndGlobalSection +EndGlobal diff --git a/Ray2Mod_NewProject/NewRay2Mod.cs b/Ray2Mod_NewProject/NewRay2Mod.cs new file mode 100644 index 0000000..a1eb655 --- /dev/null +++ b/Ray2Mod_NewProject/NewRay2Mod.cs @@ -0,0 +1,31 @@ +using Ray2Mod; + +/* To begin modding Rayman 2, you have to add Ray2Mod.dll as a reference to this project: + * 1. Right click References in the Solution Explorer + * 2. Click Browse and locate Ray2Mod.dll + * 3. Press OK to add the reference + * + * Now you can run your mod by building this project and dragging the exported DLL onto ModRunner.exe + * To automatically start the ModRunner when clicking Start, configure the following: + * 1. Click Project -> Properties... + * 2. Open the Debug configuration on the left + * 3. As start action, select "Start external program" and Browse for ModRunner.exe + * 4. Under start options, set the command line arguments to .dll (for example Ray2Mod_NewProject.dll) + * + * Now the ModRunner will start and inject your mod whenever you click start. + */ + +namespace Ray2Mod_NewProject { + + public unsafe class NewRay2Mod : IMod { + + RemoteInterface ri; + + unsafe void IMod.Run(RemoteInterface remoteInterface) + { + ri = remoteInterface; + + ri.Log("New Project, Hello World!"); + } + } +} diff --git a/Ray2Mod_NewProject/Properties/AssemblyInfo.cs b/Ray2Mod_NewProject/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..45ce348 --- /dev/null +++ b/Ray2Mod_NewProject/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Ray2Mod_NewProject")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Ray2Mod_NewProject")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("df69ca3f-1da9-44ab-af72-4128313a1dec")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Ray2Mod_NewProject/Ray2Mod_NewProject.csproj b/Ray2Mod_NewProject/Ray2Mod_NewProject.csproj new file mode 100644 index 0000000..0738743 --- /dev/null +++ b/Ray2Mod_NewProject/Ray2Mod_NewProject.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {DF69CA3F-1DA9-44AB-AF72-4128313A1DEC} + Library + Properties + Ray2Mod_NewProject + Ray2Mod_NewProject + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + true + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + + ..\..\Ray2Mod\bin\Debug\Ray2Mod.dll + + + + + + + + + + + + + + + + \ No newline at end of file