Skip to content

Commit 7cfb73a

Browse files
committed
2026-04-25 sync2
1 parent aed9153 commit 7cfb73a

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

source/_posts/04-ritsulib/04-09-add-timeline.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,22 @@ public sealed class TestAscensionOneEpoch : PackDeclaredCardUnlockEpochTemplate
163163
}
164164
```
165165

166+
## 使用
167+
168+
然后需要在你的人物类上加上这些特性用于注册:
169+
170+
```csharp
171+
[RegisterCharacter]
172+
[RequireEpoch(typeof(TestEpoch))]
173+
[UnlockEpochAfterRunAs(typeof(TestCardEpoch))]
174+
[UnlockEpochAfterWinAs(typeof(TestVictoryEpoch))]
175+
[UnlockEpochAfterEliteVictories(typeof(TestEliteEpoch))]
176+
[UnlockEpochAfterBossVictories(typeof(TestBossEpoch))]
177+
[UnlockEpochAfterAscensionOneWin(typeof(TestAscensionOneEpoch))]
178+
[RevealAscensionAfterEpoch(typeof(TestVictoryEpoch))]
179+
public class TestCharacter : ModCharacterTemplate<TestCardPool, TestRelicPool, TestPotionPool> {}
180+
```
181+
166182
## 文本
167183

168184
然后创建`{modId}/localization/{Language}/epochs.json`

0 commit comments

Comments
 (0)