Пример #1
0
        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);
            }
        }
Пример #2
0
        static void AddFeatureShortcutsFor(Character player, Feature feature)
        {
            PlayerActionShortcut shortcut = PlayerActionShortcut.FromFeature(feature, player);

            AllShortcuts.Add(shortcut);
        }