蕾忍Mod杀戮尖塔2的版本
Prerequisites:
- Install .NET SDK 9
- Install Godot Engine 4.5.1 Mono (.NET)
- Install export templates in Godot (Editor → Manage Export Templates → Download and Install)
Getting Started:
-
Clone the repository:
git clone <repository-url> cd LittleWizard
-
Restore NuGet packages:
dotnet restore
-
Install Spine-Godot plugin:
- Download the plugin from spine-godot-extension-4.2-4.5.1-stable.zip
- Extract the ZIP file and locate the
binfolder inside - Copy the entire
binfolder directly to the project root directory (same level asproject.godot)
-
Create configuration file:
- Create a file named
Directory.Build.propsin the project root directory - Add the following content (replace with your actual paths):
<Project> <PropertyGroup> <GodotPath>Your Godot installation directory</GodotPath> <SteamLibraryPath>Your Steam library directory containing Slay the Spire 2</SteamLibraryPath> </PropertyGroup> </Project>
- Create a file named
-
Code Formatting:
- This project uses CSharpier for code formatting
- Install CSharpier (recommended as a VS Code or Rider plugin)
- Code is automatically formatted on build, or you can run the format command manually
-
Start Developing:
- Use
dotnet buildto compile only the DLL files - Use
dotnet releaseto not only compile DLLs, but also export PCK files and copy JSON files, PDB files (if DebugMode is enabled) to the Slay the Spire 2 mod directory
- Use
-
Versioning:
- The version number is automatically generated from Git tags.
- If the current commit is exactly on a tag (e.g.,
v1.3.5) and the working tree is clean (no uncommitted changes), the version will be the short formv1.3.5. - Otherwise (extra commits, dirty working tree, or no tag), the version will be the full
git describe --long --dirtyoutput, e.g.,v1.3.5-2-g123abcdorv1.3.5-0-g70ca280-dirty. - The version is written into
LexNinja2.jsonand also used asVersionandFileVersionin the assembly.
-
Extended Reading:
- How to Enable Debugger: https://github.com/Alchyr/ModTemplate-StS2/wiki/Testing-and-Debugging#attaching-a-debugger
- Slay the Spire 2 Mod Template Setup Guide: https://github.com/Alchyr/ModTemplate-StS2/wiki
- BaseLib Wiki: https://alchyr.github.io/BaseLib-Wiki/