v1.2
This commit is contained in:
parent
8e965e6065
commit
ed08916c7a
10 changed files with 36 additions and 23 deletions
2
.vscode/build.bat
vendored
2
.vscode/build.bat
vendored
|
@ -1,7 +1,7 @@
|
||||||
echo off
|
echo off
|
||||||
|
|
||||||
REM remove unnecessary assemblies
|
REM remove unnecessary assemblies
|
||||||
DEL .\*\Assemblies\*.*
|
REM DEL .\*\Assemblies\*.*
|
||||||
|
|
||||||
REM build dll
|
REM build dll
|
||||||
dotnet build .vscode
|
dotnet build .vscode
|
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
|
@ -16,5 +16,19 @@
|
||||||
"internalConsoleOptions":"neverOpen",
|
"internalConsoleOptions":"neverOpen",
|
||||||
"stopAtEntry": true
|
"stopAtEntry": true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ // ignore
|
||||||
|
"name": ".NET Framework Attach",
|
||||||
|
"type": "clr",
|
||||||
|
"request": "attach",
|
||||||
|
"processId": "${command:pickProcess}",
|
||||||
|
"symbolOptions": {
|
||||||
|
"searchPaths": [
|
||||||
|
".vscode/obj/Debug/*"
|
||||||
|
],
|
||||||
|
"searchMicrosoftSymbolServer": false,
|
||||||
|
"searchNuGetOrgSymbolServer": false
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
10
.vscode/mod.csproj
vendored
10
.vscode/mod.csproj
vendored
|
@ -7,10 +7,12 @@
|
||||||
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
|
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
|
||||||
<RootNamespace>Template</RootNamespace>
|
<RootNamespace>Template</RootNamespace>
|
||||||
<AssemblyName>Template</AssemblyName>
|
<AssemblyName>Template</AssemblyName>
|
||||||
<OutputPath>../1.1/Assemblies</OutputPath>
|
<OutputPath>../1.2/Assemblies</OutputPath>
|
||||||
<VersionPrefix>1.0.0.0</VersionPrefix>
|
<VersionPrefix>1.0.0.0</VersionPrefix>
|
||||||
|
|
||||||
|
<!-- pdb file generation -->
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
|
||||||
<DebugSymbols>false</DebugSymbols>
|
<DebugSymbols>false</DebugSymbols>
|
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -25,10 +27,8 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
||||||
<!-- Harmony -->
|
<!-- Harmony -->
|
||||||
<!--
|
<!-- <Reference Include="../../Harmony/v1.1/Assemblies/0Harmony.dll">
|
||||||
<Reference Include="../../Harmony/v1.1/Assemblies/0Harmony.dll">
|
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference> -->
|
||||||
-->
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
3
.vscode/tasks.json
vendored
3
.vscode/tasks.json
vendored
|
@ -8,7 +8,8 @@
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
},
|
},
|
||||||
"command": ".vscode/build.bat",
|
// "command": ".vscode/build.bat",
|
||||||
|
"command": "dotnet build .vscode"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
BIN
1.2/Assemblies/Template.dll
Normal file
BIN
1.2/Assemblies/Template.dll
Normal file
Binary file not shown.
|
@ -3,8 +3,8 @@
|
||||||
<name>Arvkus Mod Template</name>
|
<name>Arvkus Mod Template</name>
|
||||||
<author>Arvkus</author>
|
<author>Arvkus</author>
|
||||||
<supportedVersions>
|
<supportedVersions>
|
||||||
<li>1.1</li>
|
<li>1.2</li>
|
||||||
</supportedVersions>
|
</supportedVersions>
|
||||||
<packageId>Arvkus.Rimworld.ModTemplate</packageId>
|
<packageId>Arvkus.Rimworld.ModTemplate2</packageId>
|
||||||
<description>Template</description>
|
<description>Template</description>
|
||||||
</ModMetaData>
|
</ModMetaData>
|
|
@ -25,25 +25,23 @@ namespace Template
|
||||||
public static LetterDef success_letter;
|
public static LetterDef success_letter;
|
||||||
}
|
}
|
||||||
|
|
||||||
[StaticConstructorOnStartup]
|
|
||||||
public static class Start
|
|
||||||
{
|
|
||||||
static Start()
|
|
||||||
{
|
|
||||||
Log.Message("Mod template: success");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class MyMapComponent : MapComponent
|
public class MyMapComponent : MapComponent
|
||||||
{
|
{
|
||||||
public MyMapComponent(Map map) : base(map)
|
public MyMapComponent(Map map) : base(map){}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void FinalizeInit()
|
public override void FinalizeInit()
|
||||||
{
|
{
|
||||||
Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent);
|
Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent);
|
||||||
Find.LetterStack.ReceiveLetter("Success", TemplateDefOf.success_letter.description, TemplateDefOf.success_letter, null);
|
Find.LetterStack.ReceiveLetter("Success", TemplateDefOf.success_letter.description, TemplateDefOf.success_letter, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[StaticConstructorOnStartup]
|
||||||
|
public static class Start
|
||||||
|
{
|
||||||
|
static Start() // quick debug
|
||||||
|
{
|
||||||
|
Log.Message("Mod init");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue