Project Setup

This commit is contained in:
2026-03-06 10:26:26 +01:00
commit ae6ad9ba36
13 changed files with 940 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- This is the most appropriate target framework for the game's Unity version. -->
<TargetFramework>netstandard2.1</TargetFramework>
<!-- This is the GUID of your mod. Example: com.github.YourAccount.BepInExTemplate -->
<AssemblyName>com.github.TheJordanDev.JordanMod</AssemblyName>
<!-- This is the display name of your mod. Example: BepInEx Template -->
<AssemblyTitle>JordanMod</AssemblyTitle>
<!-- This is the version number of your mod. -->
<Version>0.1.0</Version>
</PropertyGroup>
<PropertyGroup>
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
</PropertyGroup>
<!--
How to include thunderstore mods as dependencies via nuget
We have already added the windows10ce nuget feed to this project
in NuGet.Config so all you need to do is list a dependency like
this:
<ItemGroup>
<PackageReference Include="ModTeam-ModName" Version="1.0.0" Private="False"/>
</ItemGroup>
Private="false" will stop it from being copied to the output folder
during build. This will cause the mod to be downloaded and its
methods will be available at compile time for your code. You'll still
need to add it as a dependency in your manifest.json, of course
-->
</Project>

16
src/JordanMod/Plugin.cs Normal file
View File

@@ -0,0 +1,16 @@
using BepInEx;
using BepInEx.Logging;
namespace JordanMod;
[BepInAutoPlugin]
public partial class Plugin : BaseUnityPlugin
{
internal static ManualLogSource Log { get; private set; } = null!;
private void Awake()
{
Log = Logger;
Log.LogInfo($"Plugin {Name} is loaded!");
}
}

View File

@@ -0,0 +1,44 @@
[config]
schemaVersion = "0.0.1"
[general]
repository = "https://thunderstore.io"
[package]
namespace = "TheJordanDev"
name = "JordanMod"
description = "Private / Personal Mod for me and my friends game sessions."
websiteUrl = "https://github.com/TheJordanDev/JordanMod"
containsNsfwContent = false
[package.dependencies]
BepInEx-BepInExPack_PEAK = "5.4.2403"
[build]
icon = "../../icon.png"
readme = "../../README.md"
outdir = "../../artifacts/thunderstore/"
[[build.copy]]
source = "../../artifacts/bin/JordanMod/release/com.github.TheJordanDev.JordanMod.dll"
target = "plugins/"
[[build.copy]]
source = "../../CHANGELOG.md"
target = "/"
[[build.copy]]
source = "../../LICENSE"
target = "/"
# The following config options only apply when using TCLI to publish to Thunderstore directly:
[publish]
# See communities at:
# https://thunderstore.io/api/experimental/community/
communities = [ "peak", ]
[publish.categories]
# See categories at:
# https://thunderstore.io/api/experimental/community/peak/category/
peak = [ "mods", ]