void SetAction(Action set, ActionMap action) { if (!ActionLock.Contains(action)) { set(); } }
public static IEnumerable <ActionMap> Decompose(this ActionMap source) { foreach (ActionMap actionMap in typeof(ActionMap).GetEnumValues()) { if (actionMap != 0 && source.Contains(actionMap)) { yield return(actionMap); } } }