[Maintenance]: Replace Token imageAssetMap

Aperta
#6,186 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
desktop

Direzione di ricerca

Start in the Token model class and find imageAssetMap with a project-wide search, since the payload does not list the call sites. Add an MD5Key field for the token image, deprecate the map accessor, and move each caller to the new field, using the portrait and charsheet fields as the pattern. Done when the map is deprecated, no remaining code relies on the null key, and the existing tests still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

code-maintenance
Describe the problem

Currently, Token contains an entire map to manage assets. Only the null key is ever used, representing the main token image. The intended purpose of the map has never been made clear.

The improvement you'd like to see
  • Deprecate Token#imageAssetMap.
  • Add a new field of type MD5Key to represent the token image.
  • Update uses of Token#imageAssetMap to instead use the new field.
Expected Benefits

Clearer intent in the Token class, including a closer parallel with the portrait and charsheet assets.

Additional Context

No response

Lingua principale
Java
Stelle
927
Fork
286
Merge medio
3g 17h
PR unite (30g)
94

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RPTools/maptool

Tutte le issue di RPTools/maptool

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.