static void AddFeatureShortcutsFor(Character player, Feature feature) { PlayerActionShortcut shortcut = PlayerActionShortcut.FromFeature(feature, player, ActivationShortcutKind.Activate); AllShortcuts.Add(shortcut); shortcut = PlayerActionShortcut.FromFeature(feature, player, ActivationShortcutKind.Deactivate); if (shortcut != null) { AllShortcuts.Add(shortcut); } }
static void AddFeatureShortcutsFor(Character player, Feature feature) { PlayerActionShortcut shortcut = PlayerActionShortcut.FromFeature(feature, player); AllShortcuts.Add(shortcut); }