Пример #1
0
 public static IEnumerable <TResult> FireHook <TResult>(
     this EnchantmentDictionary dictionary,
     Expression <Func <IEnchantmentHook, TResult> > action
     )
     where TResult : unmanaged, IComparable, IEquatable <TResult>
 {
     return(Fire(dictionary.Values.Values, action));
 }
Пример #2
0
        public static EnchantedWeaponItem RequestEnchantment(WeaponItemWeaver magicWeapon, string enchantment)
        {
            var newEnchantment = new WeaponEnchantment(new EnchantmentOrder(EnchantmentDictionary.GetEnchantmentData(enchantment)));

            return(new EnchantedWeaponItem(magicWeapon, newEnchantment));
        }
Пример #3
0
 public static void FireHook(this EnchantmentDictionary dictionary, Action <IEnchantmentHook> action)
 {
     Dispatcher(dictionary.Values.Values, action);
 }
Пример #4
0
        public static EnchantmentData GetSpecialAbilityTicket(string specialAbilityName)
        {
            var specialAbilityInfo = EnchantmentDictionary.GetEnchantmentData(specialAbilityName);

            return(specialAbilityInfo);
        }
Пример #5
0
 public static void FireHook(this EnchantmentDictionary dictionary, Expression <Action <IEnchantmentHook> > action)
 {
     Fire(dictionary.Values.Values, action);
 }