コード例 #1
0
        public static SkillToggleEventArgs Create(uint skill, MapObject sender, MapObject target)
        {
            //SkillUsageEventArgs skill = new SkillUsageEventArgs();

            SkillToggleEventArgs skillusage = new SkillToggleEventArgs(sender, target);

            if (Singleton.SpellManager.TryGetSpell(skill, out skillusage.info))
            {
                return(skillusage);
            }
            else
            {
                return(null);
            }
        }
コード例 #2
0
 public static bool Create(uint skill, MapObject sender, MapObject target, out SkillToggleEventArgs argument)
 {
     argument = Create(skill, sender, target);
     return argument != null;
 }
コード例 #3
0
        public static SkillToggleEventArgs Create(uint skill, MapObject sender, MapObject target)
        {
            //SkillUsageEventArgs skill = new SkillUsageEventArgs();

            SkillToggleEventArgs skillusage = new SkillToggleEventArgs(sender, target);
            if (Singleton.SpellManager.TryGetSpell(skill, out skillusage.info))
                return skillusage;
            else
                return null;
        }
コード例 #4
0
 public static bool Create(uint skill, MapObject sender, MapObject target, out SkillToggleEventArgs argument)
 {
     argument = Create(skill, sender, target);
     return(argument != null);
 }