Keyword: add View Records for Serializing#10651
Conversation
|
@Hanmac @tool4ever here's AI review of how to get this into serializable form: keyword-view-architecture.md let me know how you want to proceed once happy with an architecture - I could have AI implement and then open a PR against this PR before this gets merged? |
|
Looking at that architecture doc again: I'm pretty sure AI is wrong suggesting any future change to support hover tooltips (if components are not included now) would require a new record type rather than just extending TLDR: I don't think it's necessary to include the forward-compat stuff now, can be added later. |
|
i need to experiment with it i made |
|
@MostCromulent with #9642 removing the serialize/deserialize methods from I don't really want to index the multimap like this: private final List<KeywordView> list; // canonical, serializes natively
private transient Multimap<Keyword, KeywordView> indexCache; |
|
|
Hm, I need to debug what I did wrong There is no "type" anymore? |
|
@claude try to fix "cannot find symbol variable type" in "forge.game.card.CounterKeywordType" (no help from the AI for me) |
This comment was marked as resolved.
This comment was marked as resolved.
|
Sorry @Hanmac, I was just about to comment on the type fix but you pushed your commit before I clicked send! Claude identified exactly the same fix you've just implemented. Something else Claude spotted along the way:
|
|
I was looking for i will look into the PlayerView thing and what the best case would be |
Closes #9918
@MostCromulent can you help me to make this KeywordCollectionView into a Trackable Property replacing
TrackableProperty.KeywordsandTrackableProperty.KeywordKey?we also could remove many of the other Trackable Properties like
HasDeathtouchi made KeywordView into an Interface and not the record directly so it can be extended with Cost and Amount stuff later if needed