Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring: Player/equipment v1 #1021

Closed
4 tasks done
alek13 opened this issue Apr 21, 2023 · 0 comments
Closed
4 tasks done

Refactoring: Player/equipment v1 #1021

alek13 opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
refactoring Касающееся крупной переработки имеющейся возможности
Milestone

Comments

@alek13
Copy link
Member

alek13 commented Apr 21, 2023

Требуется для #1012 и #1017

API:

  • get(), set, delete
  • {get_all|for_each|<iterator>}() -- реализован итератор items()
  • clear()
  • on_change(), on_get(), on_set()

После реалзации в соответствующих модах подписаться на события изменения equipment'а.
Например, в appearance, при изменении одежды или брони, нужно поверх скина натянуть тектуры одежды и брони. В инвентаре поменять превью игрока. В hud поменять кол-во отображаемых "щитков".

@alek13 alek13 added the refactoring Касающееся крупной переработки имеющейся возможности label Apr 21, 2023
@alek13 alek13 added this to the 2023.04 milestone Apr 21, 2023
@alek13 alek13 self-assigned this Apr 21, 2023
@alek13 alek13 changed the title Refactoring: отделить Player/equipment Refactoring: Player/equipment May 4, 2023
alek13 added a commit that referenced this issue May 4, 2023
@alek13 alek13 changed the title Refactoring: Player/equipment Refactoring: Player/equipment v1 May 5, 2023
@alek13 alek13 closed this as completed in 8bcb1e1 May 5, 2023
@Doloment Doloment modified the milestone: 2023.05 Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Касающееся крупной переработки имеющейся возможности
Projects
Status: Done
Development

No branches or pull requests

2 participants