Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsonneveld committed Jun 7, 2020
0 parents commit 262b42f
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Ray2Mod_NewProject.sln
Original file line number Diff line number Diff line change
@@ -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
31 changes: 31 additions & 0 deletions Ray2Mod_NewProject/NewRay2Mod.cs
Original file line number Diff line number Diff line change
@@ -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 -> <YourProject> 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 <YourProject>.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!");
}
}
}
36 changes: 36 additions & 0 deletions Ray2Mod_NewProject/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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")]
53 changes: 53 additions & 0 deletions Ray2Mod_NewProject/Ray2Mod_NewProject.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DF69CA3F-1DA9-44AB-AF72-4128313A1DEC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Ray2Mod_NewProject</RootNamespace>
<AssemblyName>Ray2Mod_NewProject</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="Ray2Mod">
<HintPath>..\..\Ray2Mod\bin\Debug\Ray2Mod.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="NewRay2Mod.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

0 comments on commit 262b42f

Please sign in to comment.