Interface ICommand
- Namespace
- Framework.Systems.Diagnostics.Console
- Assembly
- Assembly-CSharp.dll
Command Console 명령 계약. Framework 는 실행 환경만 제공한다. 실제 명령은 Game 프로젝트에서 구현한다.
public interface ICommand
Remarks
[구현 규칙]
- Game → Framework 참조 금지. ICommand 구현체는 Game 프로젝트에 위치한다.
- 명령은 순수 로직만 포함. UI / 렌더링 직접 접근 금지.
- 비동기가 불필요한 명령도 UniTask.CompletedTask 를 반환해 인터페이스를 통일한다.
Properties
Description
help 명령 출력용 설명.
string Description { get; }
Property Value
- string
Name
명령 이름. 소문자. 공백 없음. 예: "spawn" / "godmode".
string Name { get; }
Property Value
- string
Methods
ExecuteAsync(string[], CancellationToken)
명령 실행. args[0] 은 Name 이므로 실제 인자는 args[1] 부터 시작한다.
UniTask ExecuteAsync(string[] args, CancellationToken ct)
Parameters
argsstring[]ctCancellationToken
Returns
- UniTask