Skip to content

Commit 748c1be

Browse files
committed
2026-04-30 sync2
1 parent f92f303 commit 748c1be

1 file changed

Lines changed: 49 additions & 8 deletions

File tree

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

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
---
2-
title: 添加时间线
3-
date: 2026-04-25 00:00:00
4-
permalink: docs/04-ritsulib/04-09-add-timeline/
5-
categories:
6-
- Basics
7-
---
81
时间线是2代用来兼顾解锁人物内容和故事讲述的功能。
92

103
## 解释
@@ -59,6 +52,12 @@ public class TestEpoch : CharacterUnlockEpochTemplate<TestCharacter>
5952
// 用于本地化的键
6053
public override string Id => "TEST_CHARACTER_EPOCH";
6154

55+
// 时期的图片路径
56+
public override EpochAssetProfile AssetProfile => new(
57+
PackedPortraitPath: "res://icon.svg",
58+
BigPortraitPath: "res://icon.svg"
59+
);
60+
6261
// 解锁该时期后,解锁的所有后续时期
6362
protected override IEnumerable<Type> ExpansionEpochTypes =>
6463
[
@@ -99,6 +98,12 @@ public sealed class TestAct1Epoch : PackDeclaredCardUnlockEpochTemplate
9998
{
10099
// 用于本地化的键.通过某一幕是按ID检索的
101100
public override string Id => TestStory.ActEpochKey(1);
101+
102+
// 时期的图片路径
103+
public override EpochAssetProfile AssetProfile => new(
104+
PackedPortraitPath: "res://icon.svg",
105+
BigPortraitPath: "res://icon.svg"
106+
);
102107
}
103108

104109
[RegisterEpoch]
@@ -110,6 +115,12 @@ public sealed class TestAct2Epoch : PackDeclaredRelicUnlockEpochTemplate
110115
{
111116
// 用于本地化的键.通过某一幕是按ID检索的
112117
public override string Id => TestStory.ActEpochKey(2);
118+
119+
// 时期的图片路径
120+
public override EpochAssetProfile AssetProfile => new(
121+
PackedPortraitPath: "res://icon.svg",
122+
BigPortraitPath: "res://icon.svg"
123+
);
113124
}
114125

115126
[RegisterEpoch]
@@ -120,6 +131,12 @@ public sealed class TestAct3Epoch : PackDeclaredCardUnlockEpochTemplate
120131
{
121132
// 用于本地化的键.通过某一幕是按ID检索的
122133
public override string Id => TestStory.ActEpochKey(3);
134+
135+
// 时期的图片路径
136+
public override EpochAssetProfile AssetProfile => new(
137+
PackedPortraitPath: "res://icon.svg",
138+
BigPortraitPath: "res://icon.svg"
139+
);
123140
}
124141

125142
[RegisterEpoch]
@@ -130,6 +147,12 @@ public sealed class TestVictoryEpoch : PackDeclaredCardUnlockEpochTemplate
130147
{
131148
// 用于本地化的键
132149
public override string Id => "TEST_VICTORY_EPOCH";
150+
151+
// 时期的图片路径
152+
public override EpochAssetProfile AssetProfile => new(
153+
PackedPortraitPath: "res://icon.svg",
154+
BigPortraitPath: "res://icon.svg"
155+
);
133156
}
134157

135158
[RegisterEpoch]
@@ -140,6 +163,12 @@ public sealed class TestEliteEpoch : PackDeclaredCardUnlockEpochTemplate
140163
{
141164
// 用于本地化的键
142165
public override string Id => "TEST_ELITE_MILESTONE_EPOCH";
166+
167+
// 时期的图片路径
168+
public override EpochAssetProfile AssetProfile => new(
169+
PackedPortraitPath: "res://icon.svg",
170+
BigPortraitPath: "res://icon.svg"
171+
);
143172
}
144173

145174
[RegisterEpoch]
@@ -150,6 +179,12 @@ public sealed class TestBossEpoch : PackDeclaredCardUnlockEpochTemplate
150179
{
151180
// 用于本地化的键
152181
public override string Id => "TEST_BOSS_MILESTONE_EPOCH";
182+
183+
// 时期的图片路径
184+
public override EpochAssetProfile AssetProfile => new(
185+
PackedPortraitPath: "res://icon.svg",
186+
BigPortraitPath: "res://icon.svg"
187+
);
153188
}
154189

155190
[RegisterEpoch]
@@ -160,6 +195,12 @@ public sealed class TestAscensionOneEpoch : PackDeclaredCardUnlockEpochTemplate
160195
{
161196
// 用于本地化的键
162197
public override string Id => "TEST_ASCENSION_ONE_EPOCH";
198+
199+
// 时期的图片路径
200+
public override EpochAssetProfile AssetProfile => new(
201+
PackedPortraitPath: "res://icon.svg",
202+
BigPortraitPath: "res://icon.svg"
203+
);
163204
}
164205
```
165206

@@ -227,4 +268,4 @@ public class TestCharacter : ModCharacterTemplate<TestCardPool, TestRelicPool, T
227268
"TEST_ASCENSION_ONE_EPOCH.unlockInfo": "以[blue]戈多[/blue]通关[red]进阶[/red][blue]1[/blue]{IsRevealed:|来揭示这个历史节点}。",
228269
"TEST_ASCENSION_ONE_EPOCH.unlockText": "解锁[blue]戈多[/blue]的更多卡牌。"
229270
}
230-
```
271+
```

0 commit comments

Comments
 (0)