console_commands 테이블 참조 - Stingray Lua API 참조

console_commands 테이블 참조

설명

이 유형의 테이블은 stingray.Application.console_send() 함수를 통해 관련 정보와 함께 콘솔로 전송될 명령을 캡슐화하는 데 사용됩니다.

type 구성원은 전송될 명령의 종류를 나타내고, 테이블에 유지될 기타 구성원도 이에 따라 결정됩니다.

예를 들어, 콘솔로 메시지를 출력하고 싶은 경우 테이블에 다음 구성원이 포함되어야 합니다.

{
type = "message",
level = "warning",        -- "warning" and "error" messages are highlighted in the console; all other values are
-- treated as plain text messages.
system = "Unit",          -- this value is printed in square brackets before the message.
message = "message text"  -- this member contains the text of the message to be printed.
}

데이터 구성원

텍스트 메시지, 경고 또는 오류를 콘솔로 출력하려면 값 message를 사용하십시오. 자세한 내용은 위의 설명을 참조하십시오.