Author Topic: Enum Creator wizard for non coders  (Read 445 times)


  • Administrator
  • Hero Member
  • *****
  • Posts: 12098
  • Official Playmaker Support
    • View Profile
Enum Creator wizard for non coders
« on: January 12, 2017, 01:39:46 AM »
Hi Everyone,

 ok, new wizard for the non coders amongst us :) you will now be able to enjoy the power of Enums and FsmEnums with your own sets, without coding.

If you don't know what enums are, it's a very important part of solid and reliable coding strategy, it simply defines some hardcoded references, for example the days in a week:

Code: [Select]
enum Days { Sun, Mon, tue, Wed, thu, Fri, Sat };

and then within your code, you are safe and can't mistype or misuse week days.

PlayMaker introduced with 1.8 the ability to work with enums and create FsmVariables of type enum (FsmEnum). You can pick any available enums withint he projects, but until then if you wanted your own enum, you had to write some c# code. With this wizard you won't have to anymore.

Get the wizard on the Ecosystem

open the wizard from the PlayMaker Menu /Addons/tools/Enum Creator Wizard

and off you go,

--you can add/reorder entries, select a namespace, a name and a folder to save the enum
-- validation helps pointing out where things are not correct
-- you have a list of all your created enums at the top, you can edit them
-- full preview of the generated code

and then, you can create an FsmEnum within PlayMaker and start using it with the related actions for enum

I tried to make it as simple and obvious as possible. But of course if you have questions, don't hesitate to ask!!




  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
    • Fat Pug Studio
Re: Enum Creator wizard for non coders
« Reply #1 on: January 26, 2017, 02:01:04 PM »
Hurray!!! I was waiting for this :)