system for executing orders at the end of the turn

Godot Version 4.5.1

Question

I'm planning out a turn based strategy game and I need a system to hold a list of all the orders a player has given that the computer will execute at the end of the turn.

For example:

→Warrior unit to grid position 12, 17

→Town center build worker

Etc etc.

I’m just not sure how to go about it. Can someone point me in the right direction? (Sorry if it’s a little vague)

Create a resource-script “class_name Command extends Resource” and subclasses for every type of command and all its data.

Then just create for every command a new instance of this resource with the data and add it to an array

1 Like

Perfect :folded_hands: simplicity at its finest

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.