Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created March 26, 2025 07:20
Show Gist options
  • Select an option

  • Save todorok1/6c6dc9a10d416f57c53607f113f1bd73 to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/6c6dc9a10d416f57c53607f113f1bd73 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第53回 行動処理の全体を管理するクラス
/// <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