Class: BestCommentatorCollection

ov. BestCommentatorCollection

new ov.BestCommentatorCollection(terrainView)

webgl/ov-BestCommentatorCollection.js, line 6

最佳解說員的劇本集合,由TerrainView.bestCommentator取得。

Name Type Description
terrainView ov.TerrainView

依存的目標環境。

Members

readonlycount

群組數量

Properties:
Name Type Description
count Number

群組數量

Methods

createGroup(name){Boolean}

webgl/ov-BestCommentatorCollection.js, line 183

建立指定名稱的最佳解說員群組到集合中

Name Type Description
name String

最佳解說員的名稱。

Returns:
Type Description
Boolean 是否新增成功。

createGroupUI()

webgl/ov-BestCommentatorCollection.js, line 200

顯示建立最佳解說員群組的對話框

deleteGroup(name){Boolean}

webgl/ov-BestCommentatorCollection.js, line 228

刪除指定名稱的最佳解說員群組

Name Type Description
name String

最佳解說員的名稱。

Returns:
Type Description
Boolean 是否刪除成功。

exportBestCommentatorFile(fileName, indentation)

webgl/ov-BestCommentatorCollection.js, line 113

匯出並下載最佳解說員(JSON)

Name Type Description
fileName String

匯出的檔案名稱,若留空將會以UI詢問。

indentation Boolean

匯出的JSON字串是否要縮排。

exportBestCommentatorJSON(indentation){String}

webgl/ov-BestCommentatorCollection.js, line 87

以JSON匯出最佳解說員

Name Type Description
indentation Boolean

匯出的JSON字串是否要縮排。

Returns:
Type Description
String 匯出的JSON。

getGroup(name){ov.BestCommentatorGroup}

webgl/ov-BestCommentatorCollection.js, line 244

取得指定名稱的最佳解說員群組

Name Type Description
name String

最佳解說員的名稱。

Returns:
Type Description
ov.BestCommentatorGroup 最佳解說員群組。

importBestCommentatorFile(file)

webgl/ov-BestCommentatorCollection.js, line 99

匯入最佳解說員檔案物件

Name Type Description
file File

匯入的檔案物件。

importBestCommentatorJSON(json)

webgl/ov-BestCommentatorCollection.js, line 76

以JSON匯入最佳解說員

Name Type Description
json String

要匯入的JSON字串。

playGroup(name, event)

webgl/ov-BestCommentatorCollection.js, line 61

撥放指定名稱的群組

Name Type Description
name String

指定的群組名稱。

event Object

指定接下來這個最佳解說員的撥放事件,有以下三種可選的事件:
OnStart: 當一個群組開始撥放時
OnStop: 當一個群組撥放被中斷時
OnFinish: 當一個群組撥放完畢時

resetShellObject()

webgl/ov-BestCommentatorCollection.js, line 165

依照核心引擎的狀態將殼層物件重設

stop()

webgl/ov-BestCommentatorCollection.js, line 68

撥放中止