Table of Contents

Class CommandRegistry

Namespace
Framework.Systems.Diagnostics.Console
Assembly
Assembly-CSharp.dll

명령 등록 저장소. CommandConsole 이 유일하게 참조한다.

public sealed class CommandRegistry
Inheritance
object
CommandRegistry

Remarks

Game 프로젝트는 Register() 로 명령을 등록한다. Framework 는 등록된 명령의 내용을 알지 못한다.

Properties

All

등록된 전체 명령 목록.

public IReadOnlyDictionary<string, ICommand> All { get; }

Property Value

IReadOnlyDictionary<string, ICommand>

Methods

Register(ICommand)

명령 등록. 동일 Name 이면 덮어쓴다.

public void Register(ICommand command)

Parameters

command ICommand

TryGet(string)

이름으로 명령 조회. 없으면 null.

public ICommand TryGet(string name)

Parameters

name string

Returns

ICommand

Unregister(ICommand)

명령 해제.

public void Unregister(ICommand command)

Parameters

command ICommand