private void assignCustomActionsToParty(Party party, Dictionary <int, bool> customActionIdList) { foreach (var actId in customActionIdList) { ActionType act = (ActionType)actId.Key; party.AssignCustomAction(act, actId.Value); } }