File tree Expand file tree Collapse file tree
source/_posts/04-ritsulib Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ` 。
You can’t perform that action at this time.
0 commit comments