Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: Amimoller on June 06, 2013, 03:09:05 AM

Title: IntAsEnum attribute
Post by: Amimoller on June 06, 2013, 03:09:05 AM
Since there is no FsmEnum, could we instead have an attribute to show an int as an enum e.g.

[IntAsEnum(typeof(MyEnum))]
public FsmInt myIntValue;

This would show a dropdown with all the enum values, while still being able make it a variable.

Cheers
Title: Re: IntAsEnum attribute
Post by: jeanfabre on June 06, 2013, 05:24:09 AM
Hi,

 it's been requested already :) the lack of enum support is definitly an issue in may scenarios.

the problem here is that enum do not always translate to ints, some are bytes, some are custom, etc etc, so I think it's difficult to find the right way to do it.

Bye,

 Jean