Skip to content

Instantly share code, notes, and snippets.

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

  • Save todorok1/25838eed55cb4a7060c3b8407d18f467 to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/25838eed55cb4a7060c3b8407d18f467 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第53回 戦闘に関する機能を管理するクラス
/// <summary>
/// 戦闘中のアクションを登録するクラスへの参照です。
/// </summary>
[SerializeField]
BattleActionRegister _battleActionRegister;
/// <summary>
/// 戦闘中のアクションを処理するクラスへの参照です。
/// </summary>
[SerializeField]
BattleActionProcessor _battleActionProcessor;
/// <summary>
/// 戦闘のフェーズです。
/// </summary>
public BattlePhase BattlePhase { get; private set; }
/// <summary>
/// 選択されたコマンドです。
/// </summary>
public BattleCommand SelectedCommand { get; private set; }
/// <summary>
/// エンカウントした敵キャラクターのIDです。
/// </summary>
public int EnemyId { get; private set; }
/// <summary>
/// 戦闘開始からのターン数です。
/// </summary>
public int TurnCount { get; private set; }
/// <summary>
/// 戦闘が終了したかどうかのフラグです。
/// </summary>
public bool IsBattleFinished { get; private set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment