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 を使用します。詳細については、前述の説明を参照してください。