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

[DEV] Entity states #71

Open
1 task
gdassori opened this issue Dec 26, 2019 · 3 comments
Open
1 task

[DEV] Entity states #71

gdassori opened this issue Dec 26, 2019 · 3 comments
Assignees

Comments

@gdassori
Copy link
Member

An entity must be allowed to enter a particular state that overrides the default commands observer.

Basic Implementation:

  • Quit (yes/no)
@gdassori
Copy link
Member Author

The entry point could be the WorkerQueueService which have to expose a

add_observer_per_entity(entity_id: int, observer: ObserverClass)

method that overrides the default commans observer.

@gdassori gdassori self-assigned this Dec 26, 2019
@gdassori
Copy link
Member Author

gdassori commented Dec 26, 2019

The current character state must be saved on Redis, since any worker must be able to see it.

@gdassori
Copy link
Member Author

gdassori commented Dec 26, 2019

The states index must be generic, since also an item could be in a particular state.
For example a cursed item that can't be picked up for a while.

If no state is set for an entity, a default must be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant