Plan how to refactor more things into Actor objects and ActorLists

Aperta
#356 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
perl
Ambito
game-dev

Direzione di ricerca

Inizia esaminando i concetti esistenti Actor e ActorList e gli elenchi vending, buying, chatroom, party, guild, friend e item proposti nell’issue. Definisci le decisioni relative a denominazione, proprietà, ciclo di vita e accesso per questi oggetti, quindi registra nella discussione un piano concordato per il refactoring e le relative APIs.

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

Descrizione

code cleaning discussion

This is for discussion and planning of possible naming and ways to set up everything. Propose everything there.

vending shops around

buying stores around

chatrooms around

users in current chatroom

For this and the following:

  • Something like Actor::Contact?
  • How to link this best with Actor::Player objects?
  • There is related chat channel, make it its own object class (to handle global chat, party chat etc) and put the list inside of it? Like $party->{users}, where $party would be a ChatChannel/ChatRoom object.
  • Probably could be compared with contacts in some messenger contact list to make a solid logic.

users in friend list

users in current party

users in current guild

items in arrow craft list

  • Temporary lists like this one, where to store? Would it just be always there but empty, or maybe dynamically created - then we need hook points to detect when actor lists are created and destroyed.
  • Actually temporary lists can be stored somewhere in the module which would handle the related stuff, but there needs to be some API to access them besides commands.

items in card merge list

items in identification list

items in current vending shop

  • Actor classes in such lists should have additional methods for actions with the item. Like ->buy($amount).

items in current buying shop

Lingua principale
Perl
Stelle
1.5k
Fork
1.2k
Merge medio
17h 22m
PR unite (30g)
81

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 OpenKore/openkore

Tutte le issue di OpenKore/openkore

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.