-
-
Save todorok1/6c6dc9a10d416f57c53607f113f1bd73 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第53回 行動処理の全体を管理するクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// デバッグ用機能 | |
| /// キャラクターの行動順をコンソールに出力します。 | |
| /// </summary> | |
| void OutputActionOrder() | |
| { | |
| SimpleLogger.Instance.Log("行動順を出力します。"); | |
| var query = _actions.OrderBy(a => a.priority); | |
| foreach (var action in query) | |
| { | |
| SimpleLogger.Instance.Log($"キャラクターID : {action.actorId}, 味方かどうか : {action.isActorFriend}, Priority : {action.priority}, Command : {action.battleCommand}"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment