Esempio n. 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));
 }
Esempio n. 2
0
        public static EnchantedWeaponItem RequestEnchantment(WeaponItemWeaver magicWeapon, string enchantment)
        {
            var newEnchantment = new WeaponEnchantment(new EnchantmentOrder(EnchantmentDictionary.GetEnchantmentData(enchantment)));

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

            return(specialAbilityInfo);
        }
Esempio n. 5
0
 public static void FireHook(this EnchantmentDictionary dictionary, Expression <Action <IEnchantmentHook> > action)
 {
     Fire(dictionary.Values.Values, action);
 }