Skip to content

Commit 71ac4af

Browse files
author
REME
committed
2026-04-11 tags
1 parent 1fec6af commit 71ac4af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Basics/03 - BaseLib接口/04 - 添加卡牌属性

Basics/03 - BaseLib接口/04 - 添加卡牌属性/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public class MyCardTags
134134
}
135135
```
136136

137-
然后在卡牌类中重载`Tags`即可:
137+
然后在卡牌类中重载`CanonicalTags`即可:
138138

139139
```csharp
140140
[Pool(typeof(TestCardPool))]
@@ -143,7 +143,7 @@ public class TestCard : CustomCardModel
143143
// 其余省略
144144
145145
// 添加tag
146-
public override IEnumerable<CardTag> Tags => [MyCardTags.Test];
146+
protected override HashSet<CardTag> CanonicalTags => [MyCardTags.Test];
147147
}
148148
```
149149

0 commit comments

Comments
 (0)