playMaker

Author Topic: Variable scopes / usages  (Read 3007 times)

diskobolos

  • Playmaker Newbie
  • *
  • Posts: 6
Variable scopes / usages
« on: September 05, 2013, 04:37:39 AM »
When using RunFSM action, I would like to expose only the relevant variables as an interface of the template. This would suggest something like public / private variables distinction.

Also, sometimes I need just a temporary variable among actions inside one state.
Many such variables clutter the variables list.
This would suggest something like a (private) state variable.

For now I workaround this with prefixing those like temp_, etc.

Just for thought.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Variable scopes / usages
« Reply #1 on: September 13, 2013, 03:56:04 AM »
Hi,

 yes, I would like to have some kind of control over what local variable can be exposed to other fsms.

bye,

 Jean