I've been meaning to make an enum plugin. I really miss them from other languages.

I end up having a lot of global variables such as UPGRADE_MOVESPEED, UPGRADE_SCOREMULT, etc so that I can then do things like upgradeData.At(UPGRADE_MOVESPEED, UPGRADE_PRICE) without having to remember which entry in the array the upgrade I want is at.

There's many more examples of cases where I find this approach is useful but I end up with 834239012093 global variables that I treat as const's cluttering up my variable list.

The plugin would let you do something like this:- action -> create enum "UPGRADES"- action -> add "PRICE" to enum "UPGRADES"- and then you can use expression UPGRADES.PRICE

Any thoughts / advice before I start this in the next few days?wgfunstorm2012-01-06 23:52:54

[QUOTE=wgfunstorm] I've been meaning to make an enum plugin. I really miss them from other languages.

I end up having a lot of global variables such as UPGRADE_MOVESPEED, UPGRADE_SCOREMULT, etc so that I can then do things like upgradeData.At(UPGRADE_MOVESPEED, UPGRADE_PRICE) without having to remember which entry in the array the upgrade I want is at.

There's many more examples of cases where I find this approach is useful but I end up with 834239012093 global variables that I treat as const's cluttering up my variable list.

The plugin would let you do something like this:- action -> create enum "UPGRADES"- action -> add "PRICE" to enum "UPGRADES"- and then you can use expression UPGRADES.PRICE

Any thoughts / advice before I start this in the next few days?[/QUOTE]

There's certainly some similarities, and it would theoretically be possible to achieve what I want with a hashtable, but I really don't need the extra functionality of having to worry about matching keys->values. I like the simplicity of enum's that create & manage unique numeric keys behind the scenes for me.

Also the plugin you linked me above parses JSON->hashtable and can convert to string, which sounds pretty useful. Maybe you could team up with Rex and add XML to his plugin? Just a thought.wgfunstorm2012-01-07 05:58:36

@smitchell Hopefully they'll be useful for your use.It's really a big job to adapt it, I encountered several bugs but I see the end ;)I think that is a plugin will need to update considering users feedbacks

Also guys, to give all sense to this thread, could the plugin developers send me a pm with the plugin they are developing or the one(s) they'll start in a close time. I'll do a list on the first post to get more clearness.