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

Waypoints #120

Open
npruehs opened this issue Jun 21, 2020 · 2 comments
Open

Waypoints #120

npruehs opened this issue Jun 21, 2020 · 2 comments
Labels

Comments

@npruehs
Copy link
Owner

npruehs commented Jun 21, 2020

Allow players to queue orders for actors.

@JernejHabjan
Copy link

How can this be combined with Custom orders #122?
Example:
User can first queue actor move, then actor attack, then actor attack - move order.

First one requires only map location, second one action + actor, third one action + map location

How is a "waypoint" defined then? combination of "action" + "map location/actor"?

How do we check if actor should execute next action (on tick?)

@npruehs
Copy link
Owner Author

npruehs commented Oct 13, 2020

Yes, exactly. You'd just queue whole order objects, along with all data in it. Then, you'd use an OrderFinished (and OrderCanceled) callback to check whether the queue is empty or not, dequeueing the next order if there is any.

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

No branches or pull requests

2 participants