hestia-rsps / hestia

An open-source Kotlin game server.
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Revisit task queues #100

Closed GregHib closed 4 years ago

GregHib commented 4 years ago

Nested queue's don't work too well. Simplifying with #99 will hopefully help.

GregHib commented 4 years ago

Opening an interface cancels the current interaction.

GregHib commented 4 years ago

How should re-sending be done? E.g if one dialogue is queued in front of another, once the new one is complete the old one is still going but the dialogue is no longer displayed.

If re-sending is done by storing the last Continuation and reusing it. Couldn't there be side-effects where a player finds a way to disrupt a shop/trade and re-run to duplicate items? This could be avoided with a non-suspending "save-point"?