playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Feedback
»
Feature Requests
»
IntAsEnum attribute
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: IntAsEnum attribute (Read 2920 times)
Amimoller
Playmaker Newbie
Posts: 9
IntAsEnum attribute
«
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
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: IntAsEnum attribute
«
Reply #1 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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Feedback
»
Feature Requests
»
IntAsEnum attribute