【发布时间】:2014-03-19 19:56:35
【问题描述】:
我有一个枚举类型:
enum PlayerProps {
Attempts;
Gold;
Diamonds;
}
我应该怎么做才能遍历所有枚举值?比如:
var props = new Map<PlayerProps, Int>();
for (prop in PlayerProps)
props[prop] = 0;
【问题讨论】:
我有一个枚举类型:
enum PlayerProps {
Attempts;
Gold;
Diamonds;
}
我应该怎么做才能遍历所有枚举值?比如:
var props = new Map<PlayerProps, Int>();
for (prop in PlayerProps)
props[prop] = 0;
【问题讨论】:
【讨论】:
var mProps:EnumValueMap<PlayerProps,Int> = new EnumValueMap(),看看是否有不同...