コード例 #1
0
 public static void StopWarriorScan()
 {
     LW_DeathEvent.Unsubscribe(onLW_Death);
     LW_DevirtEvent.Unsubscribe(onLW_Devirt);
     LW_FrontierEvent.Unsubscribe(onLW_Frontier);
     LW_HealEvent.Unsubscribe(onLW_Heal);
     LW_HurtEvent.Unsubscribe(onLW_Hurt);
     LW_MoveEvent.Unsubscribe(onLW_Move);
     LW_TranslationEvent.Unsubscribe(onLW_translation);
     LW_XanaficationEvent.Unsubscribe(onLW_Xanafication);
 }
コード例 #2
0
ファイル: Kill.cs プロジェクト: LyokoAPI/MiniLyoko3
        protected override void DoCommand(string[] args)
        {
            LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower());

            if (warrior == null)
            {
                throw new CommandException(this, "Invalid warrior!");
            }
            LW_DeathEvent.Call(warrior);
            Output(warrior.WarriorName + " has been lost.");
        }