Skip to content

Commit 3125b9f

Browse files
committed
更新 README
1 parent 8234c6c commit 3125b9f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# LuaDB - Kingdom Come Deliverance II Lua Persistence Module
1+
# [LuaDB](https://www.nexusmods.com/kingdomcomedeliverance2/mods/1523) - Kingdom Come Deliverance II Lua Persistence Module
22

3-
[中文](#简介)
3+
[中文](#中文)
44

55
## Introduction
66

77
This module provides **SQLite-based Lua data persistence** for Kingdom Come: Deliverance II mod developers, supporting
88
two storage modes:
99

10-
- **Global Storage**: Persists data across game saves (APIs end with "G") with automatic save/load
11-
- **Save-associated Storage**: Data bound to game save slots with automatic save/load synchronization
10+
- **Global** : Data persists across all game saves (independent of the game save).
11+
12+
- **Local** : Bound to the game save, data is associated with a specific game save file:
13+
- **Automatically saved** when the game is saved.
14+
- **Automatically loaded** when the game loads that save.
1215

1316
## Installation Requirements
1417

@@ -202,15 +205,18 @@ after game updates, try removing the mod file (or rename `.asi` extension to dis
202205
## Want to know how I found the offset? Check out this [How to find the address of gEnv](https://github.com/muyuanjin/kcd2-mod-docs/blob/main/DISASSEMBLY.md)
203206

204207
---
205-
206-
# LuaDB - 天国拯救2 Lua 数据持久化模块
208+
<a name="中文"></a>
209+
# [LuaDB](https://www.nexusmods.com/kingdomcomedeliverance2/mods/1523) - 天国拯救2 Lua 数据持久化模块
207210

208211
## 简介
209212

210213
本模块为《天国拯救2》Mod开发者提供基于Sqlite 的 Lua 数据存储解决方案,支持两种存储模式:
211214

212-
- **全局存储**:跨存档永久保存数据(API以G结尾)自动保存/加载
213-
- **存档关联存储**:数据随游戏存档保存/加载
215+
- **全局**:数据在所有游戏存档中持久存在(独立于游戏存档)。
216+
217+
- **本地**:绑定到游戏存档,数据与特定的游戏存档文件关联:
218+
- 游戏保存时**自动保存**
219+
- 游戏加载该存档时**自动加载**
214220

215221
## 安装要求
216222

0 commit comments

Comments
 (0)