Creating an action file that has the goal, result, and feedback

Let's create an action file named battery_sim.action:

$ gedit battery_sim.action

Add the following content to it:

#goal
bool charge_state
---
#result
string battery_status
---
#feedback
float32 battery_percentage

Here, you can see that the goal, result, and feedback are defined in a hierarchical order, separated by three dashes ---.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.80.122