Documentation

Start

Read Getting started first if the mod does not already reference RitsuLib. Then choose the page that matches the feature you are adding.

GoalPage
Add RitsuLib to a modGetting started
Learn the names used by the docsTerminology
Pick the right API surfaceHow the framework is organized
Register models and idsContent authoring
Work with registries directlyContent packs and registries

起步

如果项目还没有接入 RitsuLib,先读 快速入门。之后按正在编写的功能跳到对应页面。

目标页面
给 Mod 接入 RitsuLib快速入门
理解文档使用的术语术语
选择正确 API 入口框架组织方式
注册模型和稳定 ID内容编写
直接使用注册器内容包与注册器

Authoring Content

GoalPage
Build cards, relics, potions, powers, events, acts, and placeholder entriesContent authoring
Create a character and starter loadoutCharacter and unlock scaffolding
Add dynamic card numbers and tooltipsCard dynamic variables
Add events and ancient optionsCustom events
Add story / epoch progressionTimeline and unlocks
Override art and fallback profilesAsset profiles and fallbacks
Author Godot scenes safelyGodot scene authoring
Add creature visual playbackCreature visuals and animation

编写内容

目标页面
编写卡牌、遗物、药水、能力、事件、Act 与占位内容内容编写
创建角色和初始牌组角色与解锁脚手架
添加卡牌动态数值和 Tooltip卡牌动态变量
添加事件和 Ancient 选项自定义事件
添加 Story / Epoch 进度时间线与解锁
覆写美术资源和回退配置资源配置与回退
安全编写 Godot 场景Godot 场景编写
添加生物动画播放生物视觉与动画

Runtime APIs

GoalPage
Save mod data and run migrationsPersistence
Add combat-side secondary resources and card costsSecondary resources
Add settings pagesMod settings
Use localized text, keywords, and SmartFormatLocalization and keywords
Understand LocString placeholdersLocString placeholders
Subscribe to game eventsLifecycle events
Patch game methodsPatching
Play FMOD events and local audio filesFMOD and audio
Add runtime UI helpersShell theme
Inspect live session logs in a browserDebug log viewer
Show an update toast from a mirrored manifestUpdate checks
Build a telemetry backendTelemetry backend
Check diagnostics and game-source notesDiagnostics and compatibility

运行时 API

目标页面
保存 Mod 数据并做迁移持久化
添加战斗次级资源和卡牌附加费用次级资源
添加设置页面Mod 设置
使用本地化文本、关键词和 SmartFormat本地化与关键词
理解 LocString 占位符LocString 占位符
订阅游戏事件生命周期事件
Patch 游戏方法补丁系统
播放 FMOD 事件和本地音频文件FMOD 与音频
添加运行时 UI 辅助能力Shell 主题
在浏览器中查看实时会话日志调试日志查看器
通过镜像 manifest 显示更新 toast更新检查
编写遥测后端遥测后端
查看诊断和游戏源码注意点诊断与兼容