Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create zh_cn #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/main/resources/assets/ram/lang/zh_cn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
trickster:
trick.ram:
alloc: 分配器之技巧
free: 看守者之技巧
read: 取存之辑流
write: 缓存之技巧

pattern_as_int: 压缩之曲变
pattern_from_int: 扩张之曲变
pattern_from_int_list: 组点之曲变
glyph_from_spell_part: 秃根之曲变

acquire_cell: 古玩家之技巧
read_cell: 档案员之辑流
write_cell: 档案员之技巧
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
```json
{
"title": "世界储元",
"icon": "minecraft:shulker_box",
"category": "trickster:tricks"
}
```

每个世界内部都有一片所有人共享的存储空间,其中可以永久缓存法术片段。每个储元只可写入一次,但只要有对应的引用,便可由任何人无限次读取。

;;;;;

<|glyph@trickster:templates|trick-id=ram:acquire_cell,title=古玩家之技巧|>

-> cell

---

自世界中获取一个空储元。

;;;;;

<|glyph@trickster:templates|trick-id=ram:read_cell,title=档案员之辑流|>

cell -> any

---

返回储元中的值。

;;;;;

<|glyph@trickster:templates|trick-id=ram:write_cell,title=档案员之技巧|>

cell, any -> cell

---

将所给值写入储元。此后该储元*不可*再写入。
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
```json
{
"title": "元施法附加戏法",
"icon": "minecraft:loom",
"category": "trickster:distortions"
}
```

此处记载的戏法能与[法术操纵](^trickster:distortions/tree)章节中的操纵方法协同使用。

;;;;;

<|glyph@trickster:templates|trick-id=ram:pattern_as_int,title=压缩之曲变|>

pattern -> number

---

将所给图案压缩为数。

;;;;;

<|glyph@trickster:templates|trick-id=ram:pattern_from_int,title=扩张之曲变|>

number -> pattern

---

将所给数扩张为图案。

;;;;;

<|glyph@trickster:templates|trick-id=ram:pattern_from_int_list,title=组点之曲变|>

number[] | number... -> pattern

---

依照给定的格点位置构建图案。

;;;;;

<|glyph@trickster:templates|trick-id=ram:glyph_from_spell_part,title=秃根之曲变|>

spell -> any

---

返回给定法术根节点中的符记。
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
```json
{
"title": "随机存取意识",
"icon": "minecraft:goat_horn",
"category": "trickster:tricks"
}
```

随机存取意识(Random Access Mind),简称“RAM”,是一种通过分配系统,以任意的布局半持久性地存储任意数据的方式。

;;;;;

<|glyph@trickster:templates|trick-id=ram:alloc,title=分配器之技巧|>

-> number

---

尝试分配一个RAM槽,若无空槽则导致失策,成功则返回分配的槽地址。

;;;;;

<|glyph@trickster:templates|trick-id=ram:free,title=看守者之技巧|>

number ->

---

释放所给地址处的RAM槽,以供后续再分配。

;;;;;

<|glyph@trickster:templates|trick-id=ram:read,title=取存之辑流|>

number -> any

---

返回给定地址的RAM槽中存储的法术片段。

;;;;;

<|glyph@trickster:templates|trick-id=ram:write,title=缓存之技巧|>

number, any -> any

---

将所给法术片段存入给定地址的RAM槽。会覆盖其中原有的值。