メインコンテンツへスキップ
Docs
›
list.has

list.has

List

選ばれた項目がリストにあるか確認します。

シグネチャ

list.has(ref: ElementRef, key: string, item: ContentRef): boolean

パラメーター

名前型必須説明
refElementRef必須対象のエレメント。通常は self です。
keystring必須リストの名前。
itemContentRef必須プレイヤーが選んだ項目。

戻り値

boolean リストに項目があるときは true。