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); } }
public static bool Create(uint skill, MapObject sender, MapObject target, out SkillToggleEventArgs argument) { argument = Create(skill, sender, target); return argument != null; }
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; }
public static bool Create(uint skill, MapObject sender, MapObject target, out SkillToggleEventArgs argument) { argument = Create(skill, sender, target); return(argument != null); }