元編程參考文件

案件編寫

5 個節點

本頁內容 5

檢查案件

函數

Everything wrong with the case, worst first, one line each.

簽名
檢查案件(案件: CrimeProject) -> 文字陣列
string[] CheckCase(CrimeProject crimeCase)

參數

名稱型別預設值說明
案件CrimeProject—A case, from CaseAuthoring.OpenCase.

返回

結果文字陣列

備註

Lines rather than an exception, because a case under construction is normally invalid and a node that threw would make the ordinary state of the work unrepresentable in a graph. An empty list is a case with nothing to say about it.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
案件編寫
所屬包
罪案引擎

描述案件

函數

What the case contains, counted.

簽名
描述案件(案件: CrimeProject) -> Case Summary
CaseSummary DescribeCase(CrimeProject crimeCase)

參數

名稱型別預設值說明
案件CrimeProject—A case, from CaseAuthoring.OpenCase.

返回

結果Case Summary
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
案件編寫
所屬包
罪案引擎

開啟案件

函數

Opens a case, from a project folder or from a published pack.

簽名
開啟案件(案件資料夾或包: 文字) -> CrimeProject
CrimeProject OpenCase(string caseFolderOrPack)

參數

名稱型別預設值說明
案件資料夾或包文字—A project folder, or a .cepack file.

返回

結果CrimeProject
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
案件編寫
所屬包
罪案引擎

釋出案件

函數

Publishes a case folder as one distributable .cepack file.

簽名
釋出案件(案件資料夾: 文字, 包路徑: 文字) -> 文字
string PublishCase(string caseFolder, string packPath = "")

參數

名稱型別預設值說明
案件資料夾文字—The project folder. A pack cannot be published from a pack.
包路徑文字—Where to write it, or empty to put it beside the folder under the case's own name.

返回

結果文字

備註

Refuses a case with errors in it, which is Projects.CasePackPublisher's rule rather than this layer's: a pack that cannot be played is worse than no pack, because it looks like a release.

所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
案件編寫
所屬包
罪案引擎

驗證包

函數

Checks a published pack against the folder it came from, and says what differs.

簽名
驗證包(案件資料夾: 文字, 包路徑: 文字) -> 文字
string VerifyPack(string caseFolder, string packPath)

參數

名稱型別預設值說明
案件資料夾文字—The project folder.
包路徑文字—The pack to check.

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
案件編寫
所屬包
罪案引擎