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

Action queue for Player<->Landblock Interaction #196

Closed
Mogwai-TheFurry opened this issue Apr 3, 2017 · 0 comments
Closed

Action queue for Player<->Landblock Interaction #196

Mogwai-TheFurry opened this issue Apr 3, 2017 · 0 comments

Comments

@Mogwai-TheFurry
Copy link
Contributor

Use Cases:

  • Picking up an item off the ground
  • Casting a spell
  • Getting health of a monster
  • Using a Door
  • Using a Lifestone
  • Opening chests

Other necessary changes:

  • Remove the exposure of WorldObjects from Landblock and LandblockManager

Design thoughts:

  • The session/player object would have a List of queued actions.
  • As Actions arrive.... If they don't require Landblock interaction, just handle them and be done with it. If they do require Landblock / Object interaction, add them to the session/player queue.
  • In the main Landblock server control loop, process the top X actions from each player's queue.
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